summaryrefslogtreecommitdiff
path: root/sysutils/mcelog/files/patch-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/mcelog/files/patch-config.c')
-rw-r--r--sysutils/mcelog/files/patch-config.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/sysutils/mcelog/files/patch-config.c b/sysutils/mcelog/files/patch-config.c
index d8f716f9b1bb..1819629335be 100644
--- a/sysutils/mcelog/files/patch-config.c
+++ b/sysutils/mcelog/files/patch-config.c
@@ -1,5 +1,5 @@
---- ./config.c.orig 2009-12-15 07:18:40.000000000 -0500
-+++ ./config.c 2011-10-14 22:36:47.000000000 -0400
+--- config.c.orig 2010-01-20 18:36:52.000000000 -0800
++++ config.c 2012-09-22 02:32:52.718116009 -0700
@@ -18,6 +18,9 @@
Author: Andi Kleen
*/
@@ -10,7 +10,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
-@@ -126,6 +129,21 @@
+@@ -127,6 +130,21 @@
return s;
}
@@ -32,3 +32,16 @@
int parse_config_file(const char *fn)
{
FILE *f;
+@@ -304,7 +322,12 @@
+ s = config_string(header, name);
+ if (s) {
+ /* no $PATH */
++#ifdef __Linux_
+ if (trigger_check(s) != 0) {
++#endif
++#ifdef __FreeBSD__
++ if (access(s, R_OK|X_OK) != 0) {
++#endif
+ SYSERRprintf("Trigger `%s' not executable\n", s);
+ exit(1);
+ }