Deleted Added
full compact
init.c (231534) init.c (231994)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Donn Seeley at Berkeley Software Design, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 27 unchanged lines hidden (view full) ---

36 The Regents of the University of California. All rights reserved.\n";
37#endif /* not lint */
38
39#ifndef lint
40#if 0
41static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 7/15/93";
42#endif
43static const char rcsid[] =
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Donn Seeley at Berkeley Software Design, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 27 unchanged lines hidden (view full) ---

36 The Regents of the University of California. All rights reserved.\n";
37#endif /* not lint */
38
39#ifndef lint
40#if 0
41static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 7/15/93";
42#endif
43static const char rcsid[] =
44 "$FreeBSD: head/sbin/init/init.c 231534 2012-02-11 20:47:16Z ed $";
44 "$FreeBSD: head/sbin/init/init.c 231994 2012-02-22 06:27:20Z kevlo $";
45#endif /* not lint */
46
47#include <sys/param.h>
48#include <sys/ioctl.h>
49#include <sys/mount.h>
50#include <sys/sysctl.h>
51#include <sys/wait.h>
52#include <sys/stat.h>

--- 599 unchanged lines hidden (view full) ---

652 pp && *pp->pw_passwd) {
653 write_stderr(banner);
654 for (;;) {
655 clear = getpass("Password:");
656 if (clear == 0 || *clear == '\0')
657 _exit(0);
658 password = crypt(clear, pp->pw_passwd);
659 bzero(clear, _PASSWORD_LEN);
45#endif /* not lint */
46
47#include <sys/param.h>
48#include <sys/ioctl.h>
49#include <sys/mount.h>
50#include <sys/sysctl.h>
51#include <sys/wait.h>
52#include <sys/stat.h>

--- 599 unchanged lines hidden (view full) ---

652 pp && *pp->pw_passwd) {
653 write_stderr(banner);
654 for (;;) {
655 clear = getpass("Password:");
656 if (clear == 0 || *clear == '\0')
657 _exit(0);
658 password = crypt(clear, pp->pw_passwd);
659 bzero(clear, _PASSWORD_LEN);
660 if (strcmp(password, pp->pw_passwd) == 0)
660 if (password == NULL ||
661 strcmp(password, pp->pw_passwd) == 0)
661 break;
662 warning("single-user login failed\n");
663 }
664 }
665 endttyent();
666 endpwent();
667#endif /* SECURE */
668

--- 1049 unchanged lines hidden ---
662 break;
663 warning("single-user login failed\n");
664 }
665 }
666 endttyent();
667 endpwent();
668#endif /* SECURE */
669

--- 1049 unchanged lines hidden ---