remove bug: fsck do not know path

This commit is contained in:
"Vladimir N. Oleynik"
2005-11-26 11:01:23 +00:00
parent cc34344d91
commit 350865e339
4 changed files with 10 additions and 10 deletions

View File

@@ -254,13 +254,15 @@ void make_journal_blocks(ext2_filsys fs, int journal_size, int journal_flags, in
puts("done");
}
void e2fs_set_sbin_path(void)
char *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);
if (oldpath)
oldpath = bb_xasprintf("%s:%s", PATH_SET, oldpath);
else
oldpath = PATH_SET;
putenv (oldpath);
return oldpath;
}