From 5a55fa18505ae9ea62225725418ad2c2912c677b Mon Sep 17 00:00:00 2001 From: szaka Date: Fri, 23 May 2008 13:25:28 +0000 Subject: [PATCH] fix: mount failed with invalid argument error if the mountpoint was a symlink (Peter Rabbitson, Miklos Szeredi) --- libfuse-lite/fusermount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfuse-lite/fusermount.c b/libfuse-lite/fusermount.c index c7964f01..09a560ee 100644 --- a/libfuse-lite/fusermount.c +++ b/libfuse-lite/fusermount.c @@ -439,7 +439,7 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *currdir_fd, const char *mnt = *mntp; const char *origmnt = mnt; - res = lstat(mnt, stbuf); + res = stat(mnt, stbuf); if (res == -1) { fprintf(stderr, "%s: failed to access mountpoint %s: %s\n", progname, mnt, strerror(errno));