summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/smbpasswd.c2
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);