fsck.ext3 path

greg ustrel at free.fr
Tue Dec 27 21:56:22 UTC 2005


Vladimir N. Oleynik wrote:

> greg,
>
>> Running fsck on an ext3 partition fails with "fsck.ext3 not found".
>> (version 1.1.0-pre1)
>
>
> Your patch is a hack ;-)
> This problem destroyed 26 November version.

condolences.

For completeness, any references to fsck_path should be removed since
it's not needed anymore. Here's the final patch:

###########################
--- busybox/e2fsprogs/fsck.c.orig       2005-12-27 12:14:25.000000000 +0100
+++ busybox/e2fsprogs/fsck.c    2005-12-27 21:32:05.521082981 +0100
@@ -283,7 +283,6 @@
 static char *fstype;
 static struct fs_info *filesys_info, *filesys_last;
 static struct fsck_instance *instance_list;
-static char *fsck_path;
 static blkid_cache cache;

 static char *string_copy(const char *s)
@@ -544,7 +543,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? */
@@ -1410,8 +1409,6 @@
                }
        }
        status |= wait_many(FLAG_WAIT_ALL);
-       if (ENABLE_FEATURE_CLEAN_UP)
-               free(fsck_path);
        blkid_put_cache(cache);
        return status;
 }
###########################

-- 
greg
Prends-moi Ouragan de feux
Je veux danser avec les Dieux




More information about the busybox mailing list