diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-12-28 20:39:49 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-12-28 20:39:49 +0000 |
commit | bbdea4bfd38183af2564cb498b636208deddc50b (patch) | |
tree | 9376b6ce929736911a1cc81eaab4f649a96c5737 /file_io | |
parent | adff440063a4327fca2c62693bc8b24f8fb27551 (diff) | |
download | libapr-bbdea4bfd38183af2564cb498b636208deddc50b.tar.gz |
Introduce APR_EPATHWILD to designate that a given apr_file_[l]stat()
was against a filename that included wildcards (on platforms where
wildcards are invalid filename characters, e.g. OS2, Win32 etc.)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64212 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/win32/filestat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/file_io/win32/filestat.c b/file_io/win32/filestat.c index d8c9b6c7d..429d26e72 100644 --- a/file_io/win32/filestat.c +++ b/file_io/win32/filestat.c @@ -78,7 +78,10 @@ static apr_status_t test_safe_name(const char *name) } while (*name) { if (!IS_FNCHAR(*name) && (*name != '\\') && (*name != '/')) { - return APR_EBADPATH; + if (*name == '?' || *name == '*') + return APR_EPATHWILD; + else + return APR_EBADPATH; } ++name; } |