aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--httpd.h2
-rw-r--r--webfsd.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/httpd.h b/httpd.h
index d607860..a7265d9 100644
--- a/httpd.h
+++ b/httpd.h
@@ -35,7 +35,7 @@
struct DIRCACHE {
char path[1024];
- char mtime[40];
+ char mtime[64];
time_t add;
char *html;
int length;
diff --git a/webfsd.c b/webfsd.c
index f900c67..36e5313 100644
--- a/webfsd.c
+++ b/webfsd.c
@@ -958,7 +958,9 @@ main(int argc, char *argv[])
xperror(LOG_ERR,"fork",NULL);
exit(1);
case 0:
- close(0); close(1); close(2); setsid();
+ close(0); close(1); close(2);
+ setsid();
+ open("/dev/null",O_RDWR); dup(0); dup(0);
have_tty = 0;
break;
default: