diff options
-rw-r--r-- | utils/mount/mount.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 627019a..ec57d84 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -470,6 +470,11 @@ int main(int argc, char *argv[]) " kernel\n"), progname); exit(EX_USAGE); } + if (uid != 0) { + nfs_error(_("%s: -i option is restricted to 'root'\n"), + progname); + exit(EX_USAGE); + } ++string; break; case 'h': |