Compare commits
No commits in common. "c8" and "c8s" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/libdaemon-0.14.tar.gz
|
||||
libdaemon-0.14.tar.gz
|
||||
|
@ -1 +0,0 @@
|
||||
78a4db58cf3a7a8906c35592434e37680ca83b8f SOURCES/libdaemon-0.14.tar.gz
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
56
libdaemon-0.11-stdarg-fix.patch
Normal file
56
libdaemon-0.11-stdarg-fix.patch
Normal file
@ -0,0 +1,56 @@
|
||||
--- libdaemon-0.11/libdaemon/dfork.c.debug 2007-06-11 11:36:11.000000000 -0400
|
||||
+++ libdaemon-0.11/libdaemon/dfork.c 2007-07-02 14:49:35.000000000 -0400
|
||||
@@ -354,31 +354,38 @@
|
||||
|
||||
int daemon_close_all(int except_fd, ...) {
|
||||
va_list original_ap, ap;
|
||||
- int n, i, r;
|
||||
- int *p;
|
||||
+ int n = 0, i = 0, r = -1;
|
||||
+ int *p = NULL;
|
||||
|
||||
- va_start(original_ap, except_fd);
|
||||
- va_copy(ap, original_ap);
|
||||
+ if (except_fd >= 0) {
|
||||
+ va_start(original_ap, except_fd);
|
||||
+ va_copy(ap, original_ap);
|
||||
|
||||
- for (n = 0; va_arg(ap, int) >= 0; n++)
|
||||
- ;
|
||||
+ for (n = 0; va_arg(ap, int) >= 0; n++)
|
||||
+ ;
|
||||
|
||||
- va_end(ap);
|
||||
-
|
||||
- if (!(p = malloc(sizeof(int) * (n+1)))) {
|
||||
- va_end(original_ap);
|
||||
- return -1;
|
||||
+ va_end(ap);
|
||||
}
|
||||
|
||||
- i = 0;
|
||||
- while ((p[i++] = va_arg(original_ap, int)) >= 0)
|
||||
- ;
|
||||
+ if (!(p = malloc(sizeof(int) * (n+2))))
|
||||
+ goto out;
|
||||
+
|
||||
+ p[i++] = except_fd;
|
||||
+
|
||||
+ if (except_fd >= 0) {
|
||||
+ i = 1;
|
||||
+ while ((p[i++] = va_arg(original_ap, int)) >= 0)
|
||||
+ ;
|
||||
+ }
|
||||
|
||||
p[i] = -1;
|
||||
|
||||
r = daemon_close_allv(p);
|
||||
+
|
||||
+out:
|
||||
+ if (except_fd >= 0)
|
||||
+ va_end(original_ap);
|
||||
free(p);
|
||||
-
|
||||
return r;
|
||||
}
|
||||
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (libdaemon-0.14.tar.gz) = a96b25c09bd63cc192c1c5f8b5bf34cc6ad0c32d42ac14b520add611423b6ad3d64091a47e0c7ab9a94476a5e645529abccea3ed6b23596567163fba88131ff2
|
9
tests/tests.yml
Normal file
9
tests/tests.yml
Normal file
@ -0,0 +1,9 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- simple:
|
||||
dir: .
|
||||
run: /bin/true
|
Loading…
Reference in New Issue
Block a user