add a comment
authorFelix Fietkau <nbd@openwrt.org>
Sat, 26 Jan 2008 11:23:00 +0000 (12:23 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 26 Jan 2008 11:23:00 +0000 (12:23 +0100)
file.c

diff --git a/file.c b/file.c
index 7e5a8ac..601fef5 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;