* mkpasswd.c (main): Set default home path for 9x/Me if --path-to-home

isn't given.
This commit is contained in:
Corinna Vinschen 2002-01-31 12:43:29 +00:00
parent ae334f668d
commit 29a1ad942e
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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,