diff options
Diffstat (limited to 'e2fsprogs/util.c')
-rw-r--r-- | e2fsprogs/util.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/e2fsprogs/util.c b/e2fsprogs/util.c index 58f9bbb88..e59b18c5a 100644 --- a/e2fsprogs/util.c +++ b/e2fsprogs/util.c @@ -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); +} |