Ignore:
Timestamp:
Oct 25, 2006, 12:41:23 AM (18 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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.