diff options
author | "Vladimir N. Oleynik" | 2005-10-12 16:22:19 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" | 2005-10-12 16:22:19 +0000 |
commit | d20cfbd3034ad41c0d99e7578156389f385c7340 (patch) | |
tree | b6fa54ac8c77c11156f4f214a0cda7ab3c318a45 /e2fsprogs/mke2fs.c | |
parent | 6c35c7c97628cb81eb26c2a059b0dde2879d91aa (diff) | |
download | busybox-d20cfbd3034ad41c0d99e7578156389f385c7340.zip busybox-d20cfbd3034ad41c0d99e7578156389f385c7340.tar.gz |
create e2fs_set_sbin_path(), noticed by Tito, Thanks
Diffstat (limited to 'e2fsprogs/mke2fs.c')
-rw-r--r-- | e2fsprogs/mke2fs.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/e2fsprogs/mke2fs.c b/e2fsprogs/mke2fs.c index ab50717..9c4f1c4 100644 --- a/e2fsprogs/mke2fs.c +++ b/e2fsprogs/mke2fs.c @@ -685,8 +685,6 @@ static int set_os(struct ext2_super_block *sb, char *os) return 0; } -#define PATH_SET "PATH=/sbin" - static void parse_extended_opts(struct ext2_super_block *sb_param, const char *opts) { @@ -801,17 +799,13 @@ static int PRS(int argc, char *argv[]) int show_version_only = 0; ext2_ino_t num_inodes = 0; errcode_t retval; - char * oldpath = getenv("PATH"); char * extended_opts = 0; const char * fs_type = 0; blk_t dev_size; long sysval; /* Update our PATH to include /sbin */ - if (oldpath) { - putenv (bb_xasprintf("%s:%s", PATH_SET, oldpath)); - } else - putenv (PATH_SET); + e2fs_set_sbin_path(); tmp = getenv("MKE2FS_SYNC"); if (tmp) |