summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2005-02-28 15:28:08 +0100
committerJoe Orton <jorton@apache.org>2005-02-28 15:28:08 +0100
commit1f76f2acee566ac453f052055a34fdbb3bd3d2ed (patch)
treecb98b1a4954f6b47ccefb2945720de1c1d9adfcb /support
parentbump pending httpd version (diff)
downloadapache2-1f76f2acee566ac453f052055a34fdbb3bd3d2ed.tar.xz
apache2-1f76f2acee566ac453f052055a34fdbb3bd3d2ed.zip
* support/htdigest.c (main): Fix permissions of created files.
PR: 33765 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@155681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r--support/htdigest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/support/htdigest.c b/support/htdigest.c
index 0d525c0000..f90a672c59 100644
--- a/support/htdigest.c
+++ b/support/htdigest.c
@@ -212,7 +212,8 @@ int main(int argc, const char * const argv[])
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 @@ int main(int argc, const char * const argv[])
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");