Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
htparser: Fixed pidfile-less bug.
[ashd.git]
/
src
/
dirplex.c
diff --git
a/src/dirplex.c
b/src/dirplex.c
index
60f0859
..
8e4ae11
100644
(file)
--- a/
src/dirplex.c
+++ b/
src/dirplex.c
@@
-444,13
+444,13
@@
static void handledir(struct hthead *req, int fd, char *path)
struct config **cfs;
int i, o;
struct stat sb;
struct config **cfs;
int i, o;
struct stat sb;
- char *inm, *ipath, *p;
+ char *inm, *ipath, *p
, *cpath
;
DIR *dir;
struct dirent *dent;
struct pattern *pat;
DIR *dir;
struct dirent *dent;
struct pattern *pat;
- path = sprintf2("%s/", path);
- cfs = getconfigs(path);
+
c
path = sprintf2("%s/", path);
+ cfs = getconfigs(
c
path);
for(i = 0; cfs[i] != NULL; i++) {
if(cfs[i]->index != NULL) {
for(o = 0; cfs[i]->index[o] != NULL; o++) {
for(i = 0; cfs[i] != NULL; i++) {
if(cfs[i]->index != NULL) {
for(o = 0; cfs[i]->index[o] != NULL; o++) {
@@
-489,14
+489,14
@@
static void handledir(struct hthead *req, int fd, char *path)
break;
}
}
break;
}
}
- if((pat = findmatch(path, 0, 1)) != NULL) {
- handle(req, fd, path, pat);
+ if((pat = findmatch(
c
path, 0, 1)) != NULL) {
+ handle(req, fd,
c
path, pat);
goto out;
}
simpleerror(fd, 403, "Not Authorized", "Will not send listings for this directory.");
out:
goto out;
}
simpleerror(fd, 403, "Not Authorized", "Will not send listings for this directory.");
out:
- free(path);
+ free(
c
path);
}
static int checkdir(struct hthead *req, int fd, char *path)
}
static int checkdir(struct hthead *req, int fd, char *path)