]> granicus.if.org Git - apache/commitdiff
htpasswd needs to add a newline at the end of each record.
authorRyan Bloom <rbb@apache.org>
Tue, 2 Jul 2002 19:48:38 +0000 (19:48 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 2 Jul 2002 19:48:38 +0000 (19:48 +0000)
PR: 10422
Submitted by: Thom May [thom@planetarytramp.net]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95939 13f79535-47bb-0310-9956-ffa450edef68

support/htpasswd.c

index f760d6631a26d0e572bcfb69bdefbc43c11088eb..ae7d76a05ea9921c49522d502f734d6a8625adbc 100644 (file)
@@ -236,6 +236,7 @@ static int mkrecord(char *user, char *record, size_t rlen, char *passwd,
     strcpy(record, user);
     strcat(record, ":");
     strcat(record, cpw);
+    strcat(record, "\n");
     return 0;
 }