X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=file.c;h=601fef5939380ca049480c20d599450171470dea;hp=7e5a8acc741fa98872385c1dd94da786bbc1c841;hb=57b39c44a303280bf94e4b68401b8d0d49c050ce;hpb=8ea07e430df35634c09dc63d8c0cb644522bbe69 diff --git a/file.c b/file.c index 7e5a8ac..601fef5 100644 --- 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;