search for: fnm_casefold

Displaying 9 results from an estimated 9 matches for "fnm_casefold".

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
2007 Nov 23
3
CopyHandler and hidden files?
Hello, I was wondering whether the CopyHandler plugin works with hidden files like .htaccess? I have an .htaccess under src/ and another one under src/code/, but they won''t be copied to output/. My config.yaml is: File/CopyHandler: paths: [''**/*.css'', ''**/*.js'', ''**/*.jpg'', ''**/*.png'',
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.
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
...ags 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(''foo'') end end Please feel free to take a stab at this. G...
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.
2002 Apr 18
5
mixed case file systems.
I am having trouble with rsync when I am trying to synchronize a Windows NT volume mounted with smb_fs (FreeBSD) and a unix volume which is also exported with Samba. There are instances where the DOS short name on the NT volume ends up as upper case and then doesn't match filenames which are used in the unix volumes which have been exported by Samba. I don't know if this is a Samba
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...l/alloc.h> +#include <caml/memory.h> +#include <caml/mlvalues.h> +#include <caml/unixsupport.h> + +/* NB: These flags must appear in the same order as fnmatch.ml */ +static int flags[] = { + FNM_NOESCAPE, + FNM_PATHNAME, + FNM_PERIOD, + FNM_FILE_NAME, + FNM_LEADING_DIR, + FNM_CASEFOLD, +}; + +value +supermin_fnmatch (value patternv, value strv, value flagsv) +{ + CAMLparam3 (patternv, strv, flagsv); + int f = 0, r; + + /* Convert flags to bitmask. */ + while (flagsv != Val_int (0)) { + f |= flags[Int_val (Field (flagsv, 0))]; + flagsv = Field (flagsv, 1); + } + + r =...