diff options
Diffstat (limited to 'usr.bin/nfsstat/nfsstat.c')
| -rw-r--r-- | usr.bin/nfsstat/nfsstat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index 4a3228a8d597..bd18186728e6 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -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++; } |
