apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61240] apr_file_transfer_contents change breaks htpasswd(1)
Date Fri, 30 Jun 2017 06:03:41 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61240

Ruediger Pluem <rpluem@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #4 from Ruediger Pluem <rpluem@apache.org> ---
IMHO APR code is now correct and this is a bug in  htpasswd. Does the following
patch to htpasswd fix the issue for you?

Index: htpasswd.c
===================================================================
--- htpasswd.c  (revision 1800082)
+++ htpasswd.c  (working copy)
@@ -498,7 +498,7 @@

     /* The temporary file has all the data, just copy it to the new location.
      */
-    if (apr_file_copy(dirname, pwfilename, APR_FILE_SOURCE_PERMS, pool) !=
+    if (apr_file_copy(dirname, pwfilename, APR_OS_DEFAULT, pool) !=
         APR_SUCCESS) {
         apr_file_printf(errfile, "%s: unable to update file %s" NL,
                         argv[0], pwfilename);

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message