* mkpasswd.c (main): Set default home path for 9x/Me if --path-to-home
isn't given.
This commit is contained in:
parent
ae334f668d
commit
29a1ad942e
|
@ -1,3 +1,8 @@
|
|||
2002-01-31 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* mkpasswd.c (main): Set default home path for 9x/Me if --path-to-home
|
||||
isn't given.
|
||||
|
||||
2002-01-30 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* passwd.cc (ChangePW): Add parameter to differ between called for
|
||||
|
|
|
@ -525,6 +525,9 @@ main (int argc, char **argv)
|
|||
if (!GetUserName (name, (len = 256, &len)))
|
||||
strcpy (name, "unknown");
|
||||
|
||||
if (passed_home_path[0] == '\0')
|
||||
strcpy (passed_home_path, "/home/");
|
||||
|
||||
printf ("%s::%ld:%ld::%s%s:/bin/bash\n", name,
|
||||
DOMAIN_USER_RID_ADMIN,
|
||||
DOMAIN_ALIAS_RID_ADMINS,
|
||||
|
|
Loading…
Reference in New Issue