From: <abe...@us...> - 2013-03-29 22:12:59
|
Revision: 6023 http://astlinux.svn.sourceforge.net/astlinux/?rev=6023&view=rev Author: abelbeck Date: 2013-03-29 22:12:47 +0000 (Fri, 29 Mar 2013) Log Message: ----------- host-makedevs, fix makedevs to allow longer path names as per Buildroot upstream... Makedevs path name is currently limited to 40, changed it to PATH_MAX 4096 from linux/include/linux/limits.h Modified Paths: -------------- branches/1.0/package/makedevs/makedevs.c Modified: branches/1.0/package/makedevs/makedevs.c =================================================================== --- branches/1.0/package/makedevs/makedevs.c 2013-03-29 21:50:54 UTC (rev 6022) +++ branches/1.0/package/makedevs/makedevs.c 2013-03-29 22:12:47 UTC (rev 6023) @@ -410,7 +410,7 @@ unsigned int count = 0; unsigned int increment = 0; unsigned int start = 0; - char name[41]; + char name[4096]; char user[41]; char group[41]; char *full_name; @@ -419,7 +419,7 @@ linenum++; - if ((2 > sscanf(line, "%40s %c %o %40s %40s %u %u %u %u %u", name, + if ((2 > sscanf(line, "%4095s %c %o %40s %40s %u %u %u %u %u", name, &type, &mode, user, group, &major, &minor, &start, &increment, &count)) || ((major | minor | start | count | increment) > 0xfffff)) @@ -536,5 +536,5 @@ } fclose(table); - return 0; + return ret; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |