fix: mount failed with invalid argument error if the mountpoint was a symlink

(Peter Rabbitson, Miklos Szeredi)
master
szaka 2008-05-23 13:25:28 +00:00
parent 5a434924c2
commit 5a55fa1850
1 changed files with 1 additions and 1 deletions

View File

@ -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));