anonFTP.c (56606) | anonFTP.c (79304) |
---|---|
1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last program in the `sysinstall' line - the next 5 * generation being essentially a complete rewrite. 6 * | 1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last program in the `sysinstall' line - the next 5 * generation being essentially a complete rewrite. 6 * |
7 * $FreeBSD: head/usr.sbin/sysinstall/anonFTP.c 56606 2000-01-25 19:16:31Z jkh $ | 7 * $FreeBSD: head/usr.sbin/sysinstall/anonFTP.c 79304 2001-07-05 09:51:09Z kris $ |
8 * 9 * Copyright (c) 1995 10 * Coranth Gryphon. All rights reserved. 11 * Copyright (c) 1996 12 * Jordan K. Hubbard. All rights reserved. 13 * 14 * Redistribution and use in source and binary forms, with or without 15 * modification, are permitted provided that the following conditions --- 154 unchanged lines hidden (view full) --- 170 171 sprintf(pwline, "%s:*:%s:%d::0:0:%s:%s:/nonexistent\n", FTP_NAME, tconf.uid, gid, tconf.comment, tconf.homedir); 172 173 fptr = fopen(_PATH_MASTERPASSWD,"a"); 174 if (! fptr) { 175 msgConfirm("Could not open master password file."); 176 return DITEM_FAILURE; 177 } | 8 * 9 * Copyright (c) 1995 10 * Coranth Gryphon. All rights reserved. 11 * Copyright (c) 1996 12 * Jordan K. Hubbard. All rights reserved. 13 * 14 * Redistribution and use in source and binary forms, with or without 15 * modification, are permitted provided that the following conditions --- 154 unchanged lines hidden (view full) --- 170 171 sprintf(pwline, "%s:*:%s:%d::0:0:%s:%s:/nonexistent\n", FTP_NAME, tconf.uid, gid, tconf.comment, tconf.homedir); 172 173 fptr = fopen(_PATH_MASTERPASSWD,"a"); 174 if (! fptr) { 175 msgConfirm("Could not open master password file."); 176 return DITEM_FAILURE; 177 } |
178 fprintf(fptr, pwline); | 178 fprintf(fptr, "%s", pwline); |
179 fclose(fptr); 180 msgNotify("Remaking password file: %s", _PATH_MASTERPASSWD); 181 vsystem("pwd_mkdb -p %s", _PATH_MASTERPASSWD); 182 return DITEM_SUCCESS | DITEM_RESTORE; 183} 184 185/* This is it - how to get the setup values */ 186static int --- 128 unchanged lines hidden --- | 179 fclose(fptr); 180 msgNotify("Remaking password file: %s", _PATH_MASTERPASSWD); 181 vsystem("pwd_mkdb -p %s", _PATH_MASTERPASSWD); 182 return DITEM_SUCCESS | DITEM_RESTORE; 183} 184 185/* This is it - how to get the setup values */ 186static int --- 128 unchanged lines hidden --- |