projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
38aa031
)
No UNIX style permissions under Windows.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 18 Jul 2003 14:10:27 +0000
(14:10 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 18 Jul 2003 14:10:27 +0000
(14:10 +0000)
src/conf.c
patch
|
blob
|
history
diff --git
a/src/conf.c
b/src/conf.c
index
f7019d1
..
f521152
100644
(file)
--- a/
src/conf.c
+++ b/
src/conf.c
@@
-19,7
+19,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: conf.c,v 1.9.4.6
6 2003/07/17 15:06:26
guus Exp $
+ $Id: conf.c,v 1.9.4.6
7 2003/07/18 14:10:27
guus Exp $
*/
#include "system.h"
*/
#include "system.h"
@@
-417,6
+417,7
@@
int read_server_config()
int is_safe_path(const char *file)
{
int is_safe_path(const char *file)
{
+#if !(defined(HAVE_CYGWIN) || defined(HAVE_MINGW))
char *p;
const char *f;
char x;
char *p;
const char *f;
char x;
@@
-499,6
+500,7
@@
check2:
logger(LOG_ERR, _("`%s' has unsecure permissions"), f);
return 0;
}
logger(LOG_ERR, _("`%s' has unsecure permissions"), f);
return 0;
}
+#endif
return 1;
}
return 1;
}