Changeset 902 in MondoRescue for branches/stable/mindi-busybox/loginutils


Ignore:
Timestamp:
Oct 25, 2006, 12:41:23 AM (17 years ago)
Author:
Bruno Cornec
Message:

mindi-busybox now uses busybox 1.2.2 (Thanks Rob for that last update and good lucck for your future projects).

Location:
branches/stable/mindi-busybox/loginutils
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi-busybox/loginutils/Config.in

    r821 r902  
    1515
    1616config CONFIG_USE_BB_SHADOW
    17     bool #"  Use busybox shadow password functions"
     17    bool "  Use busybox shadow password functions"
    1818    default y
    1919    depends on CONFIG_USE_BB_PWD_GRP && CONFIG_FEATURE_SHADOWPASSWDS
  • branches/stable/mindi-busybox/loginutils/getty.c

    r821 r902  
    486486    }
    487487
    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;
    489490    tp->c_cc[VMIN] = 1;
    490491    tp->c_cc[VTIME] = 0;
  • branches/stable/mindi-busybox/loginutils/sulogin.c

    r821 r902  
    4949{
    5050    char *cp;
    51     char *device = (char *) 0;
     51    char *device = NULL;
    5252    const char *name = "root";
    5353    int timeout = 0;
     
    6565    if (argc > 1) {
    6666        if (strncmp(argv[1], "-t", 2) == 0) {
    67             if (strcmp(argv[1], "-t") == 0) {
     67            if (argv[1][2] == '\0') { /* -t NN */
    6868                if (argc > 2) {
    6969                    timeout = atoi(argv[2]);
     
    7272                    }
    7373                }
    74             } else {
     74            } else { /* -tNNN */
     75                timeout = atoi(&argv[1][2]);
    7576                if (argc > 2) {
    7677                    device = argv[2];
     
    8485            close(1);
    8586            close(2);
    86             if (open(device, O_RDWR) >= 0) {
     87            if (open(device, O_RDWR) == 0) {
    8788                dup(0);
    8889                dup(0);
Note: See TracChangeset for help on using the changeset viewer.