Changeset 10877
- Timestamp:
- 11/12/08 23:15:07 (5 years ago)
- Location:
- src/router/busybox
- Files:
-
- 4 edited
-
Makefile (modified) (1 diff)
-
coreutils/basename.c (modified) (1 diff)
-
libbb/lineedit.c (modified) (1 diff)
-
libbb/setup_environment.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/busybox/Makefile
r10463 r10877 1 1 VERSION = 1 2 2 PATCHLEVEL = 12 3 SUBLEVEL = 13 SUBLEVEL = 2 4 4 EXTRAVERSION = 5 5 NAME = Unnamed -
src/router/busybox/coreutils/basename.c
r10463 r10877 49 49 /* puts(s) will do, but we can do without stdio this way: */ 50 50 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; 52 52 } -
src/router/busybox/libbb/lineedit.c
r10463 r10877 1416 1416 load_history(state->hist_file); 1417 1417 #endif 1418 state->cur_history = state->cnt_history; 1418 if (state->flags & DO_HISTORY) 1419 state->cur_history = state->cnt_history; 1419 1420 1420 1421 /* prepare before init handlers */ -
src/router/busybox/libbb/setup_environment.c
r10463 r10877 33 33 void FAST_FUNC setup_environment(const char *shell, int clear_env, int change_env, const struct passwd *pw) 34 34 { 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 35 42 if (clear_env) { 36 43 const char *term; 37 38 /* Change the current working directory to be the home directory39 * 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 }44 44 45 45 /* Leave TERM unchanged. Set HOME, SHELL, USER, LOGNAME, PATH.
Note: See TracChangeset
for help on using the changeset viewer.
