search for: fnm_pathname

Displaying 14 results from an estimated 14 matches for "fnm_pathname".

2002 May 07
0
Fixing exclude/exclude wildcard handling
...} free(users); Index: exclude.c --- exclude.c 2002/04/11 02:25:53 1.44 +++ exclude.c 2002/05/08 04:19:50 @@ -55,18 +55,7 @@ if (!ret->pattern) out_of_memory("make_exclude"); if (strpbrk(pattern, "*[?")) { - ret->regular_exp = 1; - ret->fnmatch_flags = FNM_PATHNAME; - if (strstr(pattern, "**")) { - static int tested; - if (!tested) { - tested = 1; - if (fnmatch("a/b/*", "a/b/c/d", FNM_PATHNAME)==0) { - rprintf(FERROR,"WARNING: fnmatch FNM_PATHNAME is broken on your system\n"); - }...
2016 Mar 18
1
[PATCH supermin] init: Add a blacklist of kmods that we want to exclude from the mini initrd.
...ebug >= 1 then printf "supermin: ext2: creating minimal initrd '%s'\n%!" initrd; @@ -73,7 +80,8 @@ let rec build_initrd debug tmpdir modpath initrd = fun topset modl -> let m = Filename.basename modl in let matches wildcard = fnmatch wildcard m [FNM_PATHNAME] in - if List.exists matches kmods then + if List.exists matches kmods && not (List.exists matches not_kmods) + then StringSet.add modl topset else topset -- 2.7.3
2011 Jun 28
0
[PATCH 2/2] cpio: directly include fnmatch
...s/cpio.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/usr/utils/cpio.c b/usr/utils/cpio.c index 15134b9..cb61679 100644 --- a/usr/utils/cpio.c +++ b/usr/utils/cpio.c @@ -27,9 +27,7 @@ #include <time.h> #include <unistd.h> #include <utime.h> -#ifndef FNM_PATHNAME #include <fnmatch.h> -#endif # ifndef DIRECTORY_SEPARATOR # define DIRECTORY_SEPARATOR '/' -- 1.7.5.4
2017 Feb 22
4
[PATCH 0/3] v2v: vCenter: Remove proxy environment variables
Fix for: https://bugzilla.redhat.com/show_bug.cgi?id=1354507 Main explanation is in patch #3. Rich.
2019 Mar 18
2
compile question on CentOS 7
I am trying to use the fnmatch() function in a C program and pass as the 3rd arg (options) of case insensitive search... When I use the value FNM_CASEFOLD it does not work... I'm confused on what to send to fnmatch() to do a case insensitive search. Any pointers ? Thanks. Jerry
2011 Nov 01
7
corrupted btrfs after suspend2ram uncorrectable with scrub
Hello, I''m using kernel 3.1.0 and I have both / and /home as btrfs. I used suspend to ram quite often and never had a problem, but yesterday I''ve suspended to get into a plane and when I resumed my /home was all about input/output errors. Reboot did not help either. My root (/) did not suffer any problems. Today I''ve upgraded btrfs-progs to latest GIT and tried scrub
2016 Dec 14
4
[PATCH 0/4] sysprep: Remove various backup files.
https://bugzilla.redhat.com/show_bug.cgi?id=1401320 This series contains two new operations. The second -- and least controversial -- is "passwd-backups" which removes files such as /etc/passwd-, /etc/shadow- and so on. The first one ("backup-files") searches the whole guest filesystem for any regular file which looks like an editor backup file, such as "*~" and
2007 Oct 21
0
Taking a stab at a pure Ruby Dir.glob
...equal([], MyDir.glob(''**/x*'')) end def test_glob_flags assert_nothing_raised{ MyDir.glob("*", File::FNM_DOTMATCH) } assert_nothing_raised{ MyDir.glob("*", File::FNM_NOESCAPE) } assert_nothing_raised{ MyDir.glob("*", File::FNM_PATHNAME) } assert_nothing_raised{ MyDir.glob("*", File::FNM_CASEFOLD) } end def test_glob_expected_errors assert_raises(TypeError){ MyDir.glob("*", "*") } end def teardown @foo_files = nil @bar_files = nil FileUtils.rm_rf(...
2016 Dec 14
5
[PATCH v3 0/5] sysprep: Remove various backup files.
v3: - Split out test for "unix-like" guest OSes into separate commit. - Add guestfish --format=qcow2 to the test (x2). Rich.
2016 Dec 14
6
[PATCH v2 0/4] sysprep: Remove various backup files.
In v2: - The backup-files operation now operates on a conservative whitelist of filesystems, so it won't touch anything in /usr. Consequently it also runs much more quickly, about 4 seconds on the barebones virt-builder fedora-25 image. - Call Gc.compact () in visit_tests. - Added documentation to fnmatch.mli.
2011 Jun 04
3
[PATCH 1/3] febootstrap/helper/init: make sure /proc is mounted into chroot.
--- helper/init.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/helper/init.c b/helper/init.c index 0ca3135..2b5dacf 100644 --- a/helper/init.c +++ b/helper/init.c @@ -163,8 +163,10 @@ main () chdir ("/"); - /* Run /init from ext2 filesystem. */ + mount_proc (); print_uptime (); + + /* Run /init from ext2 filesystem. */ execl
2012 May 02
4
[PATCH 0/4] fish: Allow the glob command to expand device patterns (RHBZ#635971).
This patch set fixes a two year old bug in guestfish, namely that the 'glob' command does not expand /dev/* patterns. https://bugzilla.redhat.com/show_bug.cgi?id=635971 Rich.
2002 Nov 11
0
Regular Expression support
...egexp = regexp; } ret->pattern = strdup(pattern); if (!ret->pattern) out_of_memory("make_exclude"); + if (!ret->use_real_regexp) { if (strpbrk(pattern, "*[?")) { - ret->regular_exp = 1; + ret->fnmatch = 1; ret->fnmatch_flags = FNM_PATHNAME; if (strstr(pattern, "**")) { static int tested; @@ -76,6 +85,7 @@ if (!strchr(ret->pattern,'/')) { ret->local = 1; } + } return ret; } @@ -85,15 +95,86 @@ free(ex->pattern); memset(ex,0,sizeof(*ex)); free(ex); + if(ex->rege...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...; - add_module (""); - int i; - struct module *m; - for (i = 0; kmods[i] != NULL; ++i) { - for (m = modules; m; m = m->next) { - char *n = strrchr (m->name, '/'); - if (n) - n += 1; - else - n = m->name; - if (fnmatch (kmods[i], n, FNM_PATHNAME) == 0) { - if (verbose >= 2) - fprintf (stderr, "Adding top-level dependency %s (%s)\n", m->name, kmods[i]); - add_module_dep ("", m->name); - } - } - } - - char *cmd = xasprintf ("cd %s; xargs cp -t %s", modpath, dir); - char...