aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkraxel <kraxel>2004-08-18 08:02:18 +0000
committerkraxel <kraxel>2004-08-18 08:02:18 +0000
commit01d24a69854ea050353d56c239b4a7df01d2b135 (patch)
tree9045d54a63a134888cbf1e807da43019b45f266e
parent2574fabc71d05d125877d380878ad1299bbcf29c (diff)
downloadwebfs-01d24a69854ea050353d56c239b4a7df01d2b135.tar.gz
- minor fixes.
-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: