Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f974c1
)
htparser: chdir as part of chrooting.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 29 Apr 2011 01:20:45 +0000
(
03:20
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 29 Apr 2011 01:20:45 +0000
(
03:20
+0200)
src/htparser.c
patch
|
blob
|
blame
|
history
diff --git
a/src/htparser.c
b/src/htparser.c
index
ceae319
..
5179a25
100644
(file)
--- a/
src/htparser.c
+++ b/
src/htparser.c
@@
-499,7
+499,7
@@
int main(int argc, char **argv)
if(usesyslog)
opensyslog();
if(root) {
- if(chroot(root)) {
+ if(ch
dir(root) || ch
root(root)) {
flog(LOG_ERR, "could not chroot to %s: %s", root, strerror(errno));
exit(1);
}