allow NAME_SIZE > SYSFS_PATH_MAX
PATCH 1/1 allow NAME_SIZE > SYSFS_PATH_MAX
NAME_SIZE is too small for some configurations. This patch allows more or longer names, it just keeps the stack in a sane state.
udevdb.c +1 -1
@@ -52,7 +52,7 @@ int udevdb_add_dev(const char *path, conif ((path =NULL ) || (dev =NULL ))return -ENODEV ; -memset (keystr,0 ,NAME_SIZE ); +memset (keystr,0 ,SYSFS_PATH_MAX );strfieldcpy (keystr, path); key.dptr = keystr; key.dsize =strlen (keystr) +1 ;
Signature · 14 lines
USB is for mice, FireWire is for men! sUse lINUX ag, nÜRNBERG ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel