From 16cfaf9059761a2a02e4e80186dd66959236685c Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Thu, 31 Jan 2008 17:10:01 +0100 Subject: [PATCH] Replace non standard FNM_FILE_NAME with POSIX FNM_PATHNAME. --- libisofs/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libisofs/tree.c b/libisofs/tree.c index 7f0d7ff..5dc360e 100644 --- a/libisofs/tree.c +++ b/libisofs/tree.c @@ -484,7 +484,7 @@ int check_excludes(IsoImage *image, const char *path) char *exclude = image->excludes[i]; if (exclude[0] == '/') { /* absolute exclude, must completely match path */ - if (!fnmatch(exclude, path, FNM_PERIOD|FNM_FILE_NAME)) { + if (!fnmatch(exclude, path, FNM_PERIOD|FNM_PATHNAME)) { return 1; } } else { @@ -492,7 +492,7 @@ int check_excludes(IsoImage *image, const char *path) char *pos = (char*)path; while (pos != NULL) { pos++; - if (!fnmatch(exclude, pos, FNM_PERIOD|FNM_FILE_NAME)) { + if (!fnmatch(exclude, pos, FNM_PERIOD|FNM_PATHNAME)) { return 1; } pos = strchr(pos, '/');