aboutsummaryrefslogtreecommitdiff
path: root/db2/db185/db185.c
diff options
context:
space:
mode:
Diffstat (limited to 'db2/db185/db185.c')
-rw-r--r--db2/db185/db185.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/db2/db185/db185.c b/db2/db185/db185.c
index 1affdcdf0d..7f6a16de49 100644
--- a/db2/db185/db185.c
+++ b/db2/db185/db185.c
@@ -119,7 +119,7 @@ __dbopen(file, oflags, mode, type, openinfo)
*/
if (file != NULL) {
if (oflags & O_CREAT && __db_exists(file, NULL) != 0)
- (void)__os_close(open(file, oflags, mode));
+ (void)__os_close(__os_open(file, oflags, mode));
dbinfop->re_source = (char *)file;
file = NULL;
}