Skip to contentSkip to conversation

udevstart does not close dirs

PATCH Applied Olaf Hering 2 participants 2 messages Apr 23, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udevstart does not close dirs

will only be noticed on the big boxes.
patch agains udev-021.

udevstart.c 2004-04-23 17:18:19.000000000 +0000 renamed from udevstart.c 2004-04-23 13:26:42.000000000 +0000 +6 -0
diff -purN udev-klibc/udevstart.c udev-klibc-debug/udevstart.c
@@ -127,10 +127,13 @@ static void udev_scan(void)
                                                                udev_exec(filename, "block");
                                                        }
                                                }
+                                       closedir(dir3);
                                        }
                                }
+                       closedir(dir2);
                        }
                }
+               closedir(dir);
        }
 
        if (getenv("UDEVSTART_ON_BOOT"))
@@ -176,10 +179,13 @@ static void udev_scan(void)
                                                                udev_exec(filename, dent->d_name);
                                                        }
                                                }
+                                               closedir(dir3);
                                        }
                                }
+                               closedir(dir2);
                        }
                }
+               closedir(dir);
        }
 }
 
Signature · 14 lines
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Applied
#1 lore raw
Quoted 3 lines · Olaf Hering

will only be noticed on the big boxes.
patch agains udev-021.

It doesn't apply against any version as you munged the tabs to spaces :)

I've applied it by hand to the most recent version, thanks.

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel