]> git.pld-linux.org Git - packages/mutt.git/commitdiff
- Don't segfault if file has empty name. Yes, it's possible for file to
authormkochano <mkochano@pld-linux.org>
Mon, 4 Feb 2002 00:08:15 +0000 (00:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  have empty name, at least on VFAT partition and Linus' 2.2.20 which
  has heavly broken VFAT support. And yes, I know that the right place
  (tm) to patch is kernel.

Changed files:
    mutt-null_name.patch -> 1.1

mutt-null_name.patch [new file with mode: 0644]

diff --git a/mutt-null_name.patch b/mutt-null_name.patch
new file mode 100644 (file)
index 0000000..0e29e36
--- /dev/null
@@ -0,0 +1,14 @@
+diff -urN mutt-1.3.27.orig/browser.c mutt-1.3.27/browser.c
+--- mutt-1.3.27.orig/browser.c Tue Dec 18 16:12:48 2001
++++ mutt-1.3.27/browser.c      Mon Feb  4 00:40:48 2002
+@@ -388,6 +388,10 @@
+   while ((de = readdir (dp)) != NULL)
+   {
++    /* It can happen because of broken VFAT driver. */
++    if (mutt_strcmp (de->d_name, "") == 0)
++      continue;
++
+     if (mutt_strcmp (de->d_name, ".") == 0)
+       continue;    /* we don't need . */
+     
This page took 0.442284 seconds and 4 git commands to generate.