projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7208a86
)
Return -1 on error, not NULL
author
aland
<aland>
Tue, 6 Feb 2007 13:57:09 +0000
(13:57 +0000)
committer
aland
<aland>
Tue, 6 Feb 2007 13:57:09 +0000
(13:57 +0000)
The file permission checks here are probably too strong..
src/main/conffile.c
patch
|
blob
|
history
diff --git
a/src/main/conffile.c
b/src/main/conffile.c
index
8c036b1
..
4d2f812
100644
(file)
--- a/
src/main/conffile.c
+++ b/
src/main/conffile.c
@@
-1216,7
+1216,7
@@
int cf_file_include(const char *file, CONF_SECTION *cs)
if ((statbuf.st_mode & S_IROTH) != 0) {
radlog(L_ERR|L_CONS, "Configuration file %s is globally readable. Refusing to start due to insecure configuration.",
file);
- return
NULL
;
+ return
-1
;
}
}