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

@@ -253,3 +253,14 @@ void make_journal_blocks(ext2_filsys fs, int journal_size, int journal_flags, in
if(!quiet)
puts("done");
}
void e2fs_set_sbin_path(void)
{
char *oldpath = getenv("PATH");
/* Update our PATH to include /sbin */
#define PATH_SET "/sbin"
if (oldpath)
putenv (bb_xasprintf("%s:%s", PATH_SET, oldpath));
else
putenv (PATH_SET);
}