Update from db-2.3.16.
authordrepper <drepper>
Sun, 25 Jan 1998 16:10:40 +0000 (16:10 +0000)
committerdrepper <drepper>
Sun, 25 Jan 1998 16:10:40 +0000 (16:10 +0000)
db2/db185/db185.c

index 1affdcd..7f6a16d 100644 (file)
@@ -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;
                }