fsck.ext3 path

greg ustrel at free.fr
Tue Dec 27 13:19:31 UTC 2005


hi all.

Running fsck on an ext3 partition fails with "fsck.ext3 not found".
(version 1.1.0-pre1)

I had to apply this patch to allow fsck to find the filesystem specific 
"binary" by parsing the env variable PATH.

#################################################
--- busybox/e2fsprogs/fsck.c.orig       Tue Dec 27 12:14:25 2005
+++ busybox/e2fsprogs/fsck.c    Tue Dec 27 12:12:22 2005
@@ -544,7 +544,7 @@
  {
    char *s;
    const char *tpl;
-  char *p = string_copy(fsck_path);
+  char *p = string_copy(getenv("PATH"));
    struct stat st;

    /* Are we looking for a program or just a type? */
#################################################

Regards,
gregor




More information about the busybox mailing list