diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-08 12:58:54 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-08 12:58:54 +0100 |
commit | f3e1c3cf993b0ba54afa0ff9552ffefd39828b23 (patch) | |
tree | 1f5d52b7dff4a5c60e17c8f0fd7f7412c946a0ee /package/kmod | |
parent | d77656116191a166ed0477cf16830480a2406fc5 (diff) | |
parent | d93c019f2cfdf53be59f02600cc25c547ba24edc (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/kmod')
-rw-r--r-- | package/kmod/patches/patch-libkmod_libkmod-util_c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/kmod/patches/patch-libkmod_libkmod-util_c b/package/kmod/patches/patch-libkmod_libkmod-util_c new file mode 100644 index 000000000..330fce456 --- /dev/null +++ b/package/kmod/patches/patch-libkmod_libkmod-util_c @@ -0,0 +1,24 @@ +--- kmod-15.orig/libkmod/libkmod-util.c 2013-07-15 17:45:31.000000000 +0200 ++++ kmod-15/libkmod/libkmod-util.c 2013-12-21 18:02:49.000000000 +0100 +@@ -28,6 +28,7 @@ + #include <unistd.h> + #include <errno.h> + #include <string.h> ++#include <limits.h> + #include <ctype.h> + + #include "libkmod.h" +@@ -323,8 +324,12 @@ static inline int is_dir(const char *pat + int mkdir_p(const char *path, int len, mode_t mode) + { + char *start, *end; ++ char buf[PATH_MAX+1]; + +- start = strndupa(path, len); ++ snprintf(buf, sizeof buf, "%s", path); ++ assert(len < sizeof(buf)); ++ buf[len] = 0; ++ start = buf; + end = start + len; + + /* |