Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dirplex: Start children in the directory in which they were declared.
[ashd.git]
/
src
/
dirplex
/
conf.c
diff --git
a/src/dirplex/conf.c
b/src/dirplex/conf.c
index
ffa4313
..
e40a445
100644
(file)
--- a/
src/dirplex/conf.c
+++ b/
src/dirplex/conf.c
@@
-329,7
+329,7
@@
struct config **getconfigs(char *file)
return(ret = buf.b);
}
return(ret = buf.b);
}
-struct child *findchild(char *file, char *name)
+struct child *findchild(char *file, char *name
, struct config **cf
)
{
int i;
struct config **cfs;
{
int i;
struct config **cfs;
@@
-337,10
+337,13
@@
struct child *findchild(char *file, char *name)
cfs = getconfigs(file);
for(i = 0; cfs[i] != NULL; i++) {
cfs = getconfigs(file);
for(i = 0; cfs[i] != NULL; i++) {
- if((ch = getchild(cfs[i], name)) != NULL)
- break;
+ if((ch = getchild(cfs[i], name)) != NULL) {
+ if(cf != NULL)
+ *cf = cfs[i];
+ return(ch);
+ }
}
}
- return(
ch
);
+ return(
NULL
);
}
struct pattern *findmatch(char *file, int trydefault, int dir)
}
struct pattern *findmatch(char *file, int trydefault, int dir)