Fixed bogus error reporting when the failure is RPC related ("Address
already in use", instead of "Permission denied").
This commit is contained in:
parent
bc046396d6
commit
2f21d07aa3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5966
@ -351,7 +351,7 @@ main(argc, argv)
|
|||||||
argv += optind;
|
argv += optind;
|
||||||
|
|
||||||
if (argc != 2)
|
if (argc != 2)
|
||||||
error = 1;
|
usage();
|
||||||
|
|
||||||
spec = *argv++;
|
spec = *argv++;
|
||||||
name = *argv;
|
name = *argv;
|
||||||
@ -571,6 +571,7 @@ getnfsargs(spec, nfsargsp)
|
|||||||
if (nfhret.stat) {
|
if (nfhret.stat) {
|
||||||
if (opflags & ISBGRND)
|
if (opflags & ISBGRND)
|
||||||
exit(1);
|
exit(1);
|
||||||
|
errno = nfhret.stat;
|
||||||
warn("can't access %s", spec);
|
warn("can't access %s", spec);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user