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:
c703cd4
)
dirplex: Fixed findfile bug.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 5 Sep 2010 01:50:28 +0000
(
03:50
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 5 Sep 2010 01:50:28 +0000
(
03:50
+0200)
src/dirplex.c
patch
|
blob
|
blame
|
history
diff --git
a/src/dirplex.c
b/src/dirplex.c
index
86d2d9c
..
de9ecf2
100644
(file)
--- a/
src/dirplex.c
+++ b/
src/dirplex.c
@@
-459,6
+459,8
@@
static char *findfile(char *path, char *name, struct stat *sb)
continue;
if((p = strchr(dent->d_name, '.')) == NULL)
continue;
+ if(p - dent->d_name != strlen(name))
+ continue;
if(strncmp(dent->d_name, name, strlen(name)))
continue;
fp = sprintf3("%s/%s", path, dent->d_name);