summaryrefslogtreecommitdiffstats
path: root/main/openrc/rc-sys-lxc.patch
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-03-18 13:29:45 +0100
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-03-18 14:13:22 +0100
commitd47a41157844ffd4148053a1bfcc1c9013385835 (patch)
tree4e20f28e43bcae8c5d096d69d282544622e4d82d /main/openrc/rc-sys-lxc.patch
parent44ec45ae09b613ecf55ede0964ea6bdb10e24bf2 (diff)
downloadaports-d47a41157844ffd4148053a1bfcc1c9013385835.tar.bz2
aports-d47a41157844ffd4148053a1bfcc1c9013385835.tar.xz
main/openrc: upgrade to 0.12.4
Diffstat (limited to 'main/openrc/rc-sys-lxc.patch')
-rw-r--r--main/openrc/rc-sys-lxc.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/main/openrc/rc-sys-lxc.patch b/main/openrc/rc-sys-lxc.patch
deleted file mode 100644
index c693245d3..000000000
--- a/main/openrc/rc-sys-lxc.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-diff --git a/src/librc/librc.c b/src/librc/librc.c
-index d82880f..40b975a 100644
---- a/src/librc/librc.c
-+++ b/src/librc/librc.c
-@@ -168,7 +168,7 @@ file_regex(const char *file, const char *regex)
- char *line = NULL;
- size_t len = 0;
- regex_t re;
-- bool retval = false;
-+ bool retval = true;
- int result;
-
- if (!(fp = fopen(file, "r")))
-@@ -184,11 +184,21 @@ file_regex(const char *file, const char *regex)
- }
-
- while ((rc_getline(&line, &len, fp))) {
-- if (regexec(&re, line, 0, NULL, 0) == 0)
-- retval = true;
-- if (retval)
-- break;
-+ char *str = line;
-+ /* some /proc files have \0 separated content so we have to
-+ loop through the 'line' */
-+ do {
-+ if (regexec(&re, str, 0, NULL, 0) == 0)
-+ goto found;
-+ str += strlen(str) + 1;
-+ /* len is the size of allocated buffer and we don't
-+ want call regexec BUFSIZE times. find next str */
-+ while (*str == '\0' && str < line + len)
-+ str++;
-+ } while (str < line + len);
- }
-+ retval = false;
-+found:
- fclose(fp);
- free(line);
- regfree(&re);