From 01d24a69854ea050353d56c239b4a7df01d2b135 Mon Sep 17 00:00:00 2001 From: kraxel Date: Wed, 18 Aug 2004 08:02:18 +0000 Subject: - minor fixes. --- httpd.h | 2 +- webfsd.c | 4 +++- 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: -- cgit