diff options
author | mrg <mrg> | 2002-08-05 16:37:50 +0000 |
---|---|---|
committer | mrg <mrg> | 2002-08-05 16:37:50 +0000 |
commit | 3ace5915da953d6351e778bec88ab80e61e829d7 (patch) | |
tree | ebed1cc4d30133908711bcc6483080b030967ef8 /www/bozohttpd/patches | |
parent | ebebbd90e312c765ca31b08df3b62f29cdb872df (diff) | |
download | pkgsrc-3ace5915da953d6351e778bec88ab80e61e829d7.tar.gz |
pull in a patch from development sources that fixes a bug in directory
index generation of the root of the web tree. bump to bozohttpd 5.13nb1.
Diffstat (limited to 'www/bozohttpd/patches')
-rw-r--r-- | www/bozohttpd/patches/patch-ac | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/www/bozohttpd/patches/patch-ac b/www/bozohttpd/patches/patch-ac new file mode 100644 index 00000000000..20ead1b551e --- /dev/null +++ b/www/bozohttpd/patches/patch-ac @@ -0,0 +1,51 @@ +$NetBSD: patch-ac,v 1.7 2002/08/05 16:37:50 mrg Exp $ + +Index: bozohttpd.c +=================================================================== +RCS file: /home/towers/mrg/cvsroot/eterna/bozohttpd/bozohttpd.c,v +retrieving revision 1.45 +retrieving revision 1.46 +diff -p -c -r1.45 -r1.46 +*** bozohttpd.c 2002/08/04 15:21:25 1.45 +--- bozohttpd.c 2002/08/05 16:28:26 1.46 +*************** +*** 1,4 **** +! /* $eterna: bozohttpd.c,v 1.45 2002/08/04 15:21:25 mrg Exp $ */ + + /* + * Copyright (c) 1997, 1998, 1999, 2000, 2001 Matthew R. Green +--- 1,4 ---- +! /* $eterna: bozohttpd.c,v 1.46 2002/08/05 16:28:26 mrg Exp $ */ + + /* + * Copyright (c) 1997, 1998, 1999, 2000, 2001 Matthew R. Green +*************** process_request(request) +*** 900,906 **** + else if (errno == ENOENT) { + #ifndef NO_DIRINDEX_SUPPORT + if (isindex && Xflag) { +! file[strlen(file) - strlen(index_html)] = '\0'; + debug((DEBUG_FAT, "trying dir index (%s)", + file)); + directory_index(request, file); +--- 900,909 ---- + else if (errno == ENOENT) { + #ifndef NO_DIRINDEX_SUPPORT + if (isindex && Xflag) { +! if (strlen(file) <= strlen(index_html)) +! (const char *)file = "."; +! else +! file[strlen(file) - strlen(index_html)] = '\0'; + debug((DEBUG_FAT, "trying dir index (%s)", + file)); + directory_index(request, file); +*************** directory_index(request, dirname) +*** 972,977 **** +--- 975,981 ---- + char buf[MAXPATHLEN]; + int l; + ++ debug((DEBUG_FAT, "directory_index: dirname ``%s''", dirname)); + if (stat(dirname, &sb) < 0 || + (dp = opendir(dirname)) == NULL) { + if (errno == EPERM) |