From 72daa122b6a4a9562109299d0b747c71aac1e483 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Wed, 2 Feb 2011 11:48:58 +0100 Subject: package/config: rebase against 2.6.37-rc1 Signed-off-by: Peter Korsgaard --- .../patches/15-use-PATH_MAX-for-path-buffer.patch | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 package/config/patches/15-use-PATH_MAX-for-path-buffer.patch (limited to 'package/config/patches/15-use-PATH_MAX-for-path-buffer.patch') diff --git a/package/config/patches/15-use-PATH_MAX-for-path-buffer.patch b/package/config/patches/15-use-PATH_MAX-for-path-buffer.patch deleted file mode 100644 index 816aa446a..000000000 --- a/package/config/patches/15-use-PATH_MAX-for-path-buffer.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 1408b15b98635a13bad2e2a50b3c2ae2ccdf625b Mon Sep 17 00:00:00 2001 -From: Will Newton -Date: Wed, 22 Sep 2010 15:59:13 +0100 -Subject: [PATCH] kconfig: Use PATH_MAX instead of 128 for path buffer sizes. - -This prevents the buffers being overflowed when using a config -file with a long name. PATH_MAX is used elsewhere in the same -file, so use it here as well. - -Signed-off-by: Will Newton -Acked-by: WANG Cong -Signed-off-by: Michal Marek ---- - confdata.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -Index: config/confdata.c -=================================================================== ---- config.orig/confdata.c -+++ config/confdata.c -@@ -536,7 +536,7 @@ - struct menu *menu; - const char *basename; - const char *str; -- char dirname[128], tmpname[128], newname[128]; -+ char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1]; - enum symbol_type type; - time_t now; - int use_timestamp = 1; -@@ -660,7 +660,7 @@ - static int conf_split_config(void) - { - const char *name; -- char path[128]; -+ char path[PATH_MAX+1]; - char *opwd, *dir, *_name; - char *s, *d, c; - struct symbol *sym; -- cgit v1.2.3