aboutsummaryrefslogtreecommitdiff
path: root/www/apache2/files/patch-support:htpasswd.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/apache2/files/patch-support:htpasswd.c')
-rw-r--r--www/apache2/files/patch-support:htpasswd.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/www/apache2/files/patch-support:htpasswd.c b/www/apache2/files/patch-support:htpasswd.c
new file mode 100644
index 000000000000..f836f157fa1b
--- /dev/null
+++ b/www/apache2/files/patch-support:htpasswd.c
@@ -0,0 +1,27 @@
+--- support/htpasswd.c.orig Tue Jun 18 11:58:36 2002
++++ support/htpasswd.c Mon Jul 8 16:30:14 2002
+@@ -236,6 +236,7 @@
+ strcpy(record, user);
+ strcat(record, ":");
+ strcat(record, cpw);
++ strcat(record, "\n");
+ return 0;
+ }
+
+@@ -375,7 +376,7 @@
+ }
+ }
+
+- if (*mask & (APHTP_NEWFILE | APHTP_NOFILE)) {
++ if ((*mask & APHTP_NEWFILE) && (*mask & APHTP_NOFILE)) {
+ apr_file_printf(errfile, "%s: -c and -n options conflict\n", argv[0]);
+ exit(ERR_SYNTAX);
+ }
+@@ -592,6 +593,7 @@
+ */
+ apr_file_printf(errfile, "Updating ");
+ putline(ftemp, record);
++ found++;
+ }
+ }
+ }