diff options
author | Jeremy Allison <jra@samba.org> | 1998-05-15 23:10:46 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-05-15 23:10:46 +0000 |
commit | 94a39bd9a2bfd3c87596cc1311860b7f840b1634 (patch) | |
tree | cd4a58c1bf9c8228a350bcfc3ec57422b7e7718a | |
parent | 5e1313d184bb7edc56d33178ce424c82695a996c (diff) | |
download | samba-94a39bd9a2bfd3c87596cc1311860b7f840b1634.tar.gz samba-94a39bd9a2bfd3c87596cc1311860b7f840b1634.tar.bz2 samba-94a39bd9a2bfd3c87596cc1311860b7f840b1634.zip |
Change getpwnam to Get_Pwnam(xx , True) to allow lazy matching
in /etc/passwd. Fix from "Mike Black" <mblack@csihq.com>.
Jeremy.
(This used to be commit 0146883f8568de4642087bb769b0381c3217d792)
-rw-r--r-- | source3/utils/smbpasswd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 3737d82042..35283b824b 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -451,7 +451,7 @@ int main(int argc, char **argv) * values for a machine account (it doesn't * exist in /etc/passwd). */ - if((pwd = getpwnam(user_name)) == NULL) { + if((pwd = Get_Pwnam(user_name, True)) == NULL) { fprintf(stderr, "%s: User \"%s\" was not found in system password file.\n", prog_name, user_name); exit(1); |