Changeset 10877


Ignore:
Timestamp:
11/12/08 23:15:07 (5 years ago)
Author:
BrainSlayer
Message:

busybox update

Location:
src/router/busybox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/router/busybox/Makefile

    r10463 r10877  
    11VERSION = 1 
    22PATCHLEVEL = 12 
    3 SUBLEVEL = 1 
     3SUBLEVEL = 2 
    44EXTRAVERSION = 
    55NAME = Unnamed 
  • src/router/busybox/coreutils/basename.c

    r10463 r10877  
    4949        /* puts(s) will do, but we can do without stdio this way: */ 
    5050        s[m++] = '\n'; 
    51         return full_write(STDOUT_FILENO, s, m) == (ssize_t)m; 
     51        return full_write(STDOUT_FILENO, s, m) != (ssize_t)m; 
    5252} 
  • src/router/busybox/libbb/lineedit.c

    r10463 r10877  
    14161416                load_history(state->hist_file); 
    14171417#endif 
    1418         state->cur_history = state->cnt_history; 
     1418        if (state->flags & DO_HISTORY) 
     1419                state->cur_history = state->cnt_history; 
    14191420 
    14201421        /* prepare before init handlers */ 
  • src/router/busybox/libbb/setup_environment.c

    r10463 r10877  
    3333void FAST_FUNC setup_environment(const char *shell, int clear_env, int change_env, const struct passwd *pw) 
    3434{ 
     35        /* Change the current working directory to be the home directory 
     36         * of the user */ 
     37        if (chdir(pw->pw_dir)) { 
     38                xchdir("/"); 
     39                bb_error_msg("can't chdir to home directory '%s'", pw->pw_dir); 
     40        } 
     41 
    3542        if (clear_env) { 
    3643                const char *term; 
    37  
    38                 /* Change the current working directory to be the home directory 
    39                  * of the user */ 
    40                 if (chdir(pw->pw_dir)) { 
    41                         xchdir("/"); 
    42                         bb_error_msg("can't chdir to home directory '%s'", pw->pw_dir); 
    43                 } 
    4444 
    4545                /* Leave TERM unchanged. Set HOME, SHELL, USER, LOGNAME, PATH. 
Note: See TracChangeset for help on using the changeset viewer.