mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 03:42:04 +01:00
Modify nfsstat.c so that it prints out an error when a non-root
user attempts to use the "-m" option and it fails. Requested by: danny@cs.huji.ac.il MFC after: 2 weeks
This commit is contained in:
parent
ed45ea12ca
commit
7c44c1146b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251585
@ -133,6 +133,9 @@ main(int argc, char **argv)
|
||||
printf("%s on %s\n%s\n",
|
||||
mntbuf->f_mntfromname,
|
||||
mntbuf->f_mntonname, buf);
|
||||
else if (errno == EPERM)
|
||||
errx(1, "Only priviledged users"
|
||||
" can use the -m option");
|
||||
}
|
||||
mntbuf++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user