diff --git a/packages/e2fsprogs/fix-hardcoded-paths.patch b/packages/e2fsprogs/fix-hardcoded-paths.patch index fe8fa9b6f..0c1768815 100644 --- a/packages/e2fsprogs/fix-hardcoded-paths.patch +++ b/packages/e2fsprogs/fix-hardcoded-paths.patch @@ -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;