summaryrefslogtreecommitdiff
path: root/file_io/os2/filestat.c
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-12-28 22:28:16 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-12-28 22:28:16 +0000
commit5801c86e9b722f44dd867954f9de505f533ae440 (patch)
tree847fb53a917c54deb21a4e163c163ed51bf0ed15 /file_io/os2/filestat.c
parent6df93478a67cade303536a478a3ad81d93fa7053 (diff)
downloadlibapr-5801c86e9b722f44dd867954f9de505f533ae440.tar.gz
FS3_to_finfo already assigns the initial valid bits.
It makes no sense to define that APR_FINFO_IDENT bits are there, when OS2 can't support them. Since the APR_INCOMPLETE result is _supposed_ to warn the program that some extra action might be required, it is safest to leave those bits unset, and let the program deal with things as it will. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62673 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/os2/filestat.c')
-rw-r--r--file_io/os2/filestat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/file_io/os2/filestat.c b/file_io/os2/filestat.c
index e8d6eef54..3bde33581 100644
--- a/file_io/os2/filestat.c
+++ b/file_io/os2/filestat.c
@@ -82,8 +82,9 @@ static void FS3_to_finfo(apr_finfo_t *finfo, FILESTATUS3 *fstatus)
fstatus->ftimeLastWrite );
apr_os2_time_to_apr_time(&finfo->ctime, fstatus->fdateCreation,
fstatus->ftimeCreation );
- finfo->valid |= APR_FINFO_TYPE | APR_FINFO_PROT | APR_FINFO_SIZE |
- APR_FINFO_CSIZE | APR_FINFO_MTIME | APR_FINFO_CTIME | APR_FINFO_ATIME;
+ finfo->valid = APR_FINFO_TYPE | APR_FINFO_PROT | APR_FINFO_SIZE
+ | APR_FINFO_CSIZE | APR_FINFO_MTIME
+ | APR_FINFO_CTIME | APR_FINFO_ATIME;
}
@@ -129,8 +130,6 @@ APR_DECLARE(apr_status_t) apr_file_info_get(apr_finfo_t *finfo, apr_int32_t want
if (rc == 0) {
FS3_to_finfo(finfo, &fstatus);
- /* XXX: This is wrong, but it will work for today */
- finfo->valid = APR_FINFO_NORM;
if (finfo->filetype == APR_REG) {
if (thefile->isopen) {