diff options
author | Ron Yorston <rmy@pobox.com> | 2022-02-09 09:03:18 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-02-09 09:05:39 +0000 |
commit | 492d0a7492a57fe8f02c766e25960b0ce0d88759 (patch) | |
tree | 4f5764a5c2250c031ea05e9aeacbb40d7971f493 /libbb/xfuncs_printf.c | |
parent | 4734416a21312488a5099a297907783bee4ccc22 (diff) | |
parent | caa9c4f707b661cf398f2c2d66f54f5b0d8adfe2 (diff) | |
download | busybox-w32-492d0a7492a57fe8f02c766e25960b0ce0d88759.tar.gz busybox-w32-492d0a7492a57fe8f02c766e25960b0ce0d88759.tar.bz2 busybox-w32-492d0a7492a57fe8f02c766e25960b0ce0d88759.zip |
Merge busybox into merge
Fix conflicts in reset and ash.
Redefine the new safe_read_key() as a reference to read_key().
Disable SHA256_HWACCEL.
Diffstat (limited to 'libbb/xfuncs_printf.c')
-rw-r--r-- | libbb/xfuncs_printf.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c index aae3b092d..a9add8ab2 100644 --- a/libbb/xfuncs_printf.c +++ b/libbb/xfuncs_printf.c | |||
@@ -417,11 +417,18 @@ void FAST_FUNC xseteuid(uid_t euid) | |||
417 | if (seteuid(euid)) bb_simple_perror_msg_and_die("seteuid"); | 417 | if (seteuid(euid)) bb_simple_perror_msg_and_die("seteuid"); |
418 | } | 418 | } |
419 | 419 | ||
420 | int FAST_FUNC chdir_or_warn(const char *path) | ||
421 | { | ||
422 | int r = chdir(path); | ||
423 | if (r != 0) | ||
424 | bb_perror_msg("can't change directory to '%s'", path); | ||
425 | return r; | ||
426 | } | ||
420 | // Die if we can't chdir to a new path. | 427 | // Die if we can't chdir to a new path. |
421 | void FAST_FUNC xchdir(const char *path) | 428 | void FAST_FUNC xchdir(const char *path) |
422 | { | 429 | { |
423 | if (chdir(path)) | 430 | if (chdir_or_warn(path) != 0) |
424 | bb_perror_msg_and_die("can't change directory to '%s'", path); | 431 | xfunc_die(); |
425 | } | 432 | } |
426 | 433 | ||
427 | void FAST_FUNC xfchdir(int fd) | 434 | void FAST_FUNC xfchdir(int fd) |