From: Ryan Bloom Date: Tue, 2 Jul 2002 19:48:38 +0000 (+0000) Subject: htpasswd needs to add a newline at the end of each record. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cff1c58cef7c21b7d14425e8e71d8d7544c97ee9;p=apache htpasswd needs to add a newline at the end of each record. 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 --- diff --git a/support/htpasswd.c b/support/htpasswd.c index f760d6631a..ae7d76a05e 100644 --- a/support/htpasswd.c +++ b/support/htpasswd.c @@ -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; }