[4828] in Athena Bugs
Re: nfsc
daemon@ATHENA.MIT.EDU (John F Carr)
Fri Apr 27 11:25:49 1990
Date: Fri, 27 Apr 90 11:25:31 -0400 (EDT)
From: John F Carr <jfc@ATHENA.MIT.EDU>
To: marc@MIT.EDU
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: <9003082234.AA08883@BILL-THE-CAT.MIT.EDU>
Here's a patch to allow both local and remote users to be specified by
uid. I haven't attempted to fix the case where the userid is a number
(there are at least 2 such users).
nfsc is an athena program, and belongs in /source/athena, not /source/bsd-4.3.
*** /source/bsd-4.3/common/usr.etc/nfsc/nfsc.c Fri Apr 13 16:17:52 1990
--- nfsc.c Fri Apr 27 11:18:55 1990
***************
*** 143,153 ****
case 3:
break;
case 4:
! user = getpwnam(argv[3]);
! if (!user) {
! status = EUNKNOWNUSER;
goto usage;
- }
cuid = (rpc_gid_t)(user->pw_uid);
gid = (rpc_gid_t)(user->pw_gid);
break;
--- 143,150 ----
case 3:
break;
case 4:
! if (status = parse_user(2, argv + 2, &user))
goto usage;
cuid = (rpc_gid_t)(user->pw_uid);
gid = (rpc_gid_t)(user->pw_gid);
break;