]> granicus.if.org Git - apache/commitdiff
Pass the perms arg to apr_dbm_open
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 28 Apr 2001 00:26:38 +0000 (00:26 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 28 Apr 2001 00:26:38 +0000 (00:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88959 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_auth_dbm.c
modules/dav/fs/dbm.c

index 9ac71a741db726d06e5a9661444b4df8d4edd8bf..0b9fcb42736d9393598244375f3ead76e613ae7f 100644 (file)
@@ -177,7 +177,7 @@ static char *get_dbm_pw(request_rec *r, char *user, char *auth_dbmpwfile)
 #endif
 
 #ifdef AP_AUTH_DBM_USE_APR
-    if (!(retval = dbm_open(&f, auth_dbmpwfile, APR_DBM_READONLY, r->pool))) {
+    if (!(retval = dbm_open(&f, auth_dbmpwfile, APR_DBM_READONLY, APR_OS_DEFAULT, r->pool))) {
         ap_log_rerror(APLOG_MARK, APLOG_ERR, retval, r,
                    "could not open sdbm auth file: %s", auth_dbmpwfile);
        return NULL;
index d3febb60eb0178be0b9e1fa4755b0bedb13b12ba..fd1b7714de464b1822b290685ba3431ee5a78f54 100644 (file)
@@ -143,7 +143,8 @@ dav_error * dav_dbm_open_direct(apr_pool_t *p, const char *pathname, int ro,
     *pdb = NULL;
 
     if ((status = apr_dbm_open(&file, pathname,
-                               ro ? APR_DBM_READONLY : APR_DBM_RWCREATE, p))
+                               ro ? APR_DBM_READONLY : APR_DBM_RWCREATE, 
+                               APR_OS_DEFAULT, p))
                 != APR_SUCCESS
         && !ro) {
         /* ### do something with 'status' */