summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pw/pwupd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pwupd.c b/pw/pwupd.c
index fea551c..7b96035 100644
--- a/pw/pwupd.c
+++ b/pw/pwupd.c
@@ -175,7 +175,7 @@ pw_update(struct passwd * pwd, char const * user, int mode)
if (mode == UPD_DELETE)
rc = pwdb(NULL);
else
- rc = pwdb("-u", user, NULL);
+ rc = pwdb("-u", pwd->pw_name, NULL);
}
}
}