Fixed bogus error reporting when the failure is RPC related ("Address
already in use", instead of "Permission denied").
This commit is contained in:
parent
7f2435f217
commit
f71d8cadb0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user