Changeset 902 in MondoRescue for branches/stable/mindi-busybox/loginutils
- Timestamp:
- Oct 25, 2006, 12:41:23 AM (17 years ago)
- Location:
- branches/stable/mindi-busybox/loginutils
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/loginutils/Config.in
r821 r902 15 15 16 16 config CONFIG_USE_BB_SHADOW 17 bool #" Use busybox shadow password functions"17 bool " Use busybox shadow password functions" 18 18 default y 19 19 depends on CONFIG_USE_BB_PWD_GRP && CONFIG_FEATURE_SHADOWPASSWDS -
branches/stable/mindi-busybox/loginutils/getty.c
r821 r902 486 486 } 487 487 488 tp->c_iflag = tp->c_lflag = tp->c_oflag = tp->c_line = 0; 488 tp->c_iflag = tp->c_lflag = tp->c_line = 0; 489 tp->c_oflag = OPOST | ONLCR; 489 490 tp->c_cc[VMIN] = 1; 490 491 tp->c_cc[VTIME] = 0; -
branches/stable/mindi-busybox/loginutils/sulogin.c
r821 r902 49 49 { 50 50 char *cp; 51 char *device = (char *) 0;51 char *device = NULL; 52 52 const char *name = "root"; 53 53 int timeout = 0; … … 65 65 if (argc > 1) { 66 66 if (strncmp(argv[1], "-t", 2) == 0) { 67 if ( strcmp(argv[1], "-t") == 0) {67 if (argv[1][2] == '\0') { /* -t NN */ 68 68 if (argc > 2) { 69 69 timeout = atoi(argv[2]); … … 72 72 } 73 73 } 74 } else { 74 } else { /* -tNNN */ 75 timeout = atoi(&argv[1][2]); 75 76 if (argc > 2) { 76 77 device = argv[2]; … … 84 85 close(1); 85 86 close(2); 86 if (open(device, O_RDWR) >= 0) {87 if (open(device, O_RDWR) == 0) { 87 88 dup(0); 88 89 dup(0);
Note:
See TracChangeset
for help on using the changeset viewer.