You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2005/02/28 15:28:14 UTC

svn commit: r155681 - httpd/httpd/trunk/support/htdigest.c

Author: jorton
Date: Mon Feb 28 06:28:08 2005
New Revision: 155681

URL: http://svn.apache.org/viewcvs?view=rev&rev=155681
Log:
* support/htdigest.c (main): Fix permissions of created files.

PR: 33765

Modified:
    httpd/httpd/trunk/support/htdigest.c

Modified: httpd/httpd/trunk/support/htdigest.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/support/htdigest.c?view=diff&r1=155680&r2=155681
==============================================================================
--- httpd/httpd/trunk/support/htdigest.c (original)
+++ httpd/httpd/trunk/support/htdigest.c Mon Feb 28 06:28:08 2005
@@ -212,7 +212,8 @@
     if (argc == 5) {
         if (strcmp(argv[1], "-c"))
             usage();
-        rv = apr_file_open(&f, argv[2], APR_WRITE | APR_CREATE, -1, cntxt);
+        rv = apr_file_open(&f, argv[2], APR_WRITE | APR_CREATE,
+                           APR_OS_DEFAULT, cntxt);
         if (rv != APR_SUCCESS) {
             char errmsg[120];
 
@@ -242,7 +243,7 @@
         exit(1);
     }
 
-    if (apr_file_open(&f, argv[1], APR_READ, -1, cntxt) != APR_SUCCESS) {
+    if (apr_file_open(&f, argv[1], APR_READ, APR_OS_DEFAULT, cntxt) != APR_SUCCESS) {
         apr_file_printf(errfile,
                 "Could not open passwd file %s for reading.\n", argv[1]);
         apr_file_printf(errfile, "Use -c option to create new one.\n");