Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f0a758c
)
dirplex: Fixed up handledir a bit.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 31 Aug 2010 19:38:35 +0000
(21:38 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 31 Aug 2010 19:38:35 +0000
(21:38 +0200)
src/dirplex.c
patch
|
blob
|
blame
|
history
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)