Lines 18-23
Link Here
|
18 |
Author: Andi Kleen |
18 |
Author: Andi Kleen |
19 |
*/ |
19 |
*/ |
20 |
#define _GNU_SOURCE 1 |
20 |
#define _GNU_SOURCE 1 |
|
|
21 |
#ifdef __FreeBSD__ |
22 |
#include <sys/param.h> |
23 |
#endif |
21 |
#include <stdio.h> |
24 |
#include <stdio.h> |
22 |
#include <string.h> |
25 |
#include <string.h> |
23 |
#include <ctype.h> |
26 |
#include <ctype.h> |
Lines 304-310
int config_trigger(const char *header, c
Link Here
|
304 |
s = config_string(header, name); |
307 |
s = config_string(header, name); |
305 |
if (s) { |
308 |
if (s) { |
306 |
/* no $PATH */ |
309 |
/* no $PATH */ |
|
|
310 |
#ifdef __Linux_ |
307 |
if (trigger_check(s) != 0) { |
311 |
if (trigger_check(s) != 0) { |
|
|
312 |
#endif |
313 |
#ifdef __FreeBSD__ |
314 |
if (access(s, R_OK|X_OK) != 0) { |
315 |
#endif |
308 |
SYSERRprintf("Trigger `%s' not executable\n", s); |
316 |
SYSERRprintf("Trigger `%s' not executable\n", s); |
309 |
exit(1); |
317 |
exit(1); |
310 |
} |
318 |
} |