projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update copyright information.
[tinc]
/
src
/
process.c
diff --git
a/src/process.c
b/src/process.c
index
d07ce7d
..
2ca9300
100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-1,7
+1,7
@@
/*
process.c -- process management functions
Copyright (C) 1999-2005 Ivo Timmermans,
/*
process.c -- process management functions
Copyright (C) 1999-2005 Ivo Timmermans,
- 2000-200
7
Guus Sliepen <guus@tinc-vpn.org>
+ 2000-200
9
Guus Sliepen <guus@tinc-vpn.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-364,7
+364,6
@@
bool execute_script(const char *name, char **envp)
{
#ifdef HAVE_SYSTEM
int status, len;
{
#ifdef HAVE_SYSTEM
int status, len;
- struct stat s;
char *scriptname, *p;
int i;
char *scriptname, *p;
int i;
@@
-380,12
+379,14
@@
bool execute_script(const char *name, char **envp)
scriptname[len - 1] = '\0';
scriptname[len - 1] = '\0';
+#ifndef HAVE_TUNEMU
/* First check if there is a script */
/* First check if there is a script */
- if(
stat(scriptname + 1, &s
)) {
+ if(
access(scriptname + 1, F_OK
)) {
free(scriptname);
return true;
}
free(scriptname);
return true;
}
+#endif
ifdebug(STATUS) logger(LOG_INFO, _("Executing script %s"), name);
ifdebug(STATUS) logger(LOG_INFO, _("Executing script %s"), name);