[system-tools-backends-clone] Fix user password modification
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [system-tools-backends-clone] Fix user password modification
- Date: Mon, 2 Nov 2009 22:44:41 +0000 (UTC)
commit e2a6668dcd5b4e85c0a5f7ea53198776617d2ef9
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Mon Nov 2 23:38:59 2009 +0100
Fix user password modification
Commit ee59351bfa31ee60779a20a79b1b49f308a777b0 broke it by removing the password parameter.
Users/Users.pm | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/Users/Users.pm b/Users/Users.pm
index 233a1cc..41bb5cc 100644
--- a/Users/Users.pm
+++ b/Users/Users.pm
@@ -674,9 +674,11 @@ sub change_user
@command = ($cmd_usermod, "-d", $$new_user[$HOME],
"-g", $$new_user[$GID],
"-l", $$new_user[$LOGIN],
+ "-p", $$new_user[$PASSWD],
"-s", $$new_user[$SHELL],
"-u", $$new_user[$UID],
$$old_user[$LOGIN]);
+
&Utils::File::run (@command);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]