e2fsprogs: remove /bin/applets from PATH

This commit is contained in:
Leonid Pliushch 2020-07-09 01:10:57 +03:00
parent 6b6b0b0097
commit d9f72ae7e2

View File

@ -18,7 +18,7 @@ diff -uNr e2fsprogs-1.44.4/debugfs/util.c e2fsprogs-1.44.4.mod/debugfs/util.c
static const char *pager_search_list[] = { "pager", "more", "less", 0 };
-static const char *pager_dir_list[] = { "/usr/bin", "/bin", 0 };
+static const char *pager_dir_list[] = { "@TERMUX_PREFIX@/bin", "@TERMUX_PREFIX@/bin/applets", 0 };
+static const char *pager_dir_list[] = { "@TERMUX_PREFIX@/bin", 0 };
static const char *find_pager(char *buf)
{
@ -253,7 +253,7 @@ diff -uNr e2fsprogs-1.44.4/misc/fsck.c e2fsprogs-1.44.4.mod/misc/fsck.c
static struct fs_info *filesys_info = NULL, *filesys_last = NULL;
static struct fsck_instance *instance_list;
-static const char *fsck_prefix_path = "/sbin:/sbin/fs.d:/sbin/fs:/etc/fs:/etc";
+static const char *fsck_prefix_path = "@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets";
+static const char *fsck_prefix_path = "@TERMUX_PREFIX@/bin";
static char *fsck_path = 0;
static blkid_cache cache = NULL;