projects
/
project
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a6fa62
)
fix index file handling
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 3 Jan 2013 00:08:06 +0000
(
01:08
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 3 Jan 2013 00:08:06 +0000
(
01:08
+0100)
file.c
patch
|
blob
|
history
diff --git
a/file.c
b/file.c
index 9268577f833342bba95c00472e56b8f22eca7d83..679755d9754313813808e7bee059a3086399081a 100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-233,8
+233,10
@@
uh_path_lookup(struct client *cl, const char *url)
continue;
strcpy(pathptr, idx->name);
- if (!stat(path_phys, &s) && (s.st_mode & S_IFREG))
+ if (!stat(path_phys, &s) && (s.st_mode & S_IFREG)) {
+ memcpy(&p.stat, &s, sizeof(p.stat));
break;
+ }
*pathptr = 0;
}