From 94a39bd9a2bfd3c87596cc1311860b7f840b1634 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 15 May 1998 23:10:46 +0000 Subject: Change getpwnam to Get_Pwnam(xx , True) to allow lazy matching in /etc/passwd. Fix from "Mike Black" . Jeremy. (This used to be commit 0146883f8568de4642087bb769b0381c3217d792) --- source3/utils/smbpasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/utils') 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); -- cgit