umount: I forgot to change another PATH_MAX to 4096
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 24 Oct 2010 11:28:45 +0000 (13:28 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 24 Oct 2010 11:28:45 +0000 (13:28 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/umount.c

index 1b489ba5630b06576df951c171f748f4ccfb220c..78c603856aa59646aa1ba50fbbedf16b70c3eef6 100644 (file)
@@ -101,7 +101,7 @@ int umount_main(int argc UNUSED_PARAM, char **argv)
                if (opt & OPT_ALL)
                        bb_error_msg_and_die("can't open '%s'", bb_path_mtab_file);
        } else {
-               while (getmntent_r(fp, &me, buf, PATH_MAX * 2 + 128)) {
+               while (getmntent_r(fp, &me, buf, 4096)) {
                        /* Match fstype if passed */
                        if (!match_fstype(&me, fstype))
                                continue;