From: Andrew Deason Date: Thu, 22 Apr 2010 14:59:30 +0000 (-0500) Subject: Resolve symlinks for 'fs rmmount' X-Git-Tag: openafs-devel-1_5_74_1~8 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=219276bab080640d0f024eba344073bdffaf6c1f;p=packages%2Fo%2Fopenafs.git Resolve symlinks for 'fs rmmount' 'fs rmmount' is the only 'fs' command that does not resolve symlinks for its pioctls for some reason. Make it resolve symlinks. Thanks to Arne Wiebalck. Change-Id: Ifb6bdf0b381abd2e157d93d7eea4d853e1b3a689 Reviewed-on: http://gerrit.openafs.org/1805 Tested-by: Andrew Deason Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/venus/fs.c b/src/venus/fs.c index cc394f0b4..f79138e09 100644 --- a/src/venus/fs.c +++ b/src/venus/fs.c @@ -1893,7 +1893,7 @@ RemoveMountCmd(struct cmd_syndesc *as, void *arock) blob.in_size = strlen(tp) + 1; blob.out = lsbuffer; blob.out_size = sizeof(lsbuffer); - code = pioctl(tbuffer, VIOC_AFS_STAT_MT_PT, &blob, 0); + code = pioctl(tbuffer, VIOC_AFS_STAT_MT_PT, &blob, 1); if (code) { if (errno == EINVAL) { fprintf(stderr, "%s: '%s' is not a mount point.\n", pn, @@ -1907,7 +1907,7 @@ RemoveMountCmd(struct cmd_syndesc *as, void *arock) blob.out_size = 0; blob.in = tp; blob.in_size = strlen(tp) + 1; - code = pioctl(tbuffer, VIOC_AFS_DELETE_MT_PT, &blob, 0); + code = pioctl(tbuffer, VIOC_AFS_DELETE_MT_PT, &blob, 1); if (code) { Die(errno, ti->data); error = 1;