summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2016-09-12 13:14:05 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-16 15:24:02 +0100
commitf9b18c398a5859531a2ec23b1853467999a86846 (patch)
treef42dc54a53b9dbaa712245228506b625820ddee1 /meta
parent92862c678f1da4f35f2576a0c15ea736d0ecb9d2 (diff)
downloadpoky-f9b18c398a5859531a2ec23b1853467999a86846.tar.gz
makedevs: don't restrict device node paths to 40 characters
40 character paths work OK for device nodes in /dev but not for device nodes created in a chroot, LXC container, etc. Since the 'path' array is already a 4k buffer, the sscanf 40 character limit seems to be a typo or historical mis-merge. Update the sscanf limit and bring the code in sync with the Buildroot version: https://git.buildroot.net/buildroot/commit/?id=8876b6751e0bc19a3754290061808f0f8420708e (From OE-Core rev: e8022d00c34e37300c1c06f712c7ced5e03d2a57) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/makedevs/makedevs/makedevs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/makedevs/makedevs/makedevs.c b/meta/recipes-devtools/makedevs/makedevs/makedevs.c
index 7471f3f5b3..cba7681414 100644
--- a/meta/recipes-devtools/makedevs/makedevs/makedevs.c
+++ b/meta/recipes-devtools/makedevs/makedevs/makedevs.c
@@ -360,7 +360,7 @@ static int interpret_table_entry(char *line)
360 unsigned long mode = 0755, uid = 0, gid = 0, major = 0, minor = 0; 360 unsigned long mode = 0755, uid = 0, gid = 0, major = 0, minor = 0;
361 unsigned long start = 0, increment = 1, count = 0; 361 unsigned long start = 0, increment = 1, count = 0;
362 362
363 if (0 > sscanf(line, "%40s %c %lo %40s %40s %lu %lu %lu %lu %lu", path, 363 if (0 > sscanf(line, "%4095s %c %lo %40s %40s %lu %lu %lu %lu %lu", path,
364 &type, &mode, usr_buf, grp_buf, &major, &minor, &start, 364 &type, &mode, usr_buf, grp_buf, &major, &minor, &start,
365 &increment, &count)) 365 &increment, &count))
366 { 366 {