From: Neil Brown Date: Fri, 10 Aug 2007 23:52:29 +0000 (+1000) Subject: Restrict -i option to root. X-Git-Tag: nfs-utils-1-1-1~77 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=d876c93b7646f878ef774553611d8ad9ad8f15aa;p=nfs-utils.git Restrict -i option to root. As it is still under development, don't expose it - just in case. Signed-off-by: Neil Brown --- 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':