diff options
author | dg <dg@FreeBSD.org> | 1995-01-27 23:24:33 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-01-27 23:24:33 +0000 |
commit | aff0ac7fd7baa2061a4ad622c09096563cebe969 (patch) | |
tree | 25823ddac4a9ba84fd54d2b841283aa417a6bf67 /sbin | |
parent | 36c58a9a2cd4feac7bddcb991d74315f84d3fb7a (diff) | |
download | FreeBSD-src-aff0ac7fd7baa2061a4ad622c09096563cebe969.zip FreeBSD-src-aff0ac7fd7baa2061a4ad622c09096563cebe969.tar.gz |
Fixed bogus error reporting when the failure is RPC related ("Address
already in use", instead of "Permission denied").
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount_nfs/mount_nfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index 1488efc..bf6d6c4 100644 --- a/sbin/mount_nfs/mount_nfs.c +++ b/sbin/mount_nfs/mount_nfs.c @@ -351,7 +351,7 @@ main(argc, argv) argv += optind; if (argc != 2) - error = 1; + usage(); spec = *argv++; name = *argv; @@ -571,6 +571,7 @@ getnfsargs(spec, nfsargsp) if (nfhret.stat) { if (opflags & ISBGRND) exit(1); + errno = nfhret.stat; warn("can't access %s", spec); return (0); } |