Fixed bogus error reporting when the failure is RPC related ("Address

already in use", instead of "Permission denied").
This commit is contained in:
dg 1995-01-27 23:24:33 +00:00
parent 7f2435f217
commit f71d8cadb0

View File

@ -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);
}