projects
/
oweals
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed971c1
)
add a comment
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 26 Jan 2008 11:23:00 +0000
(12:23 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 26 Jan 2008 11:23:00 +0000
(12:23 +0100)
file.c
patch
|
blob
|
history
diff --git
a/file.c
b/file.c
index 7e5a8acc741fa98872385c1dd94da786bbc1c841..601fef5939380ca049480c20d599450171470dea 100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-564,6
+564,12
@@
int uci_load(struct uci_context *ctx, const char *name, struct uci_package **pac
return uci_import(ctx, file, name, package);
}
+/*
+ * This function returns the filename by returning the string
+ * after the last '/' character. By checking for a non-'\0'
+ * character afterwards, directories are ignored (glob marks
+ * those with a trailing '/'
+ */
static inline char *get_filename(char *path)
{
char *p;