create e2fs_set_sbin_path(), noticed by Tito, Thanks

This commit is contained in:
"Vladimir N. Oleynik"
2005-10-12 16:22:19 +00:00
parent 6c35c7c976
commit d20cfbd303
7 changed files with 36 additions and 63 deletions

View File

@@ -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)