ALT Linux Bugzilla
– Attachment 1155 Details for
Bug 8104
null passwords
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
добавил вызов usermod при нулевом пароле
local_users.diff (text/plain), 587 bytes, created by
Kachalov Anton
on 2005-09-30 19:07:22 MSD
(
hide
)
Description:
добавил вызов usermod при нулевом пароле
Filename:
MIME Type:
Creator:
Kachalov Anton
Created:
2005-09-30 19:07:22 MSD
Size:
587 bytes
patch
obsolete
>--- local_users.orig 2005-05-03 13:29:32 +0400 >+++ local_users 2005-09-30 19:03:17 +0400 >@@ -115,7 +115,11 @@ > done > eval "$cmd $params $username &>/dev/null" > if [ -n "$need_chpasswd" ];then >- printf '%s\n' "$need_chpasswd" |sed 's,^passwd:,,'|sed "s,.*,$username:&,"|/usr/sbin/chpasswd >+ if [ -z "${need_chpasswd##passwd:}" ]; then >+ usermod -p "" $username || exit 1 >+ else >+ printf '%s\n' "$need_chpasswd" |sed 's,^passwd:,,'|sed "s,.*,$username:&,"|/usr/sbin/chpasswd || exit 1 >+ fi > fi > are_user_exists "$username" || exit 1 > exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8104
: 1155