From 219276bab080640d0f024eba344073bdffaf6c1f Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Thu, 22 Apr 2010 09:59:30 -0500 Subject: [PATCH] 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 --- src/venus/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/venus/fs.c b/src/venus/fs.c index cc394f0..f79138e 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; -- 1.9.4