]> granicus.if.org Git - apache/commitdiff
Make the hardcoded checks for platforms-without-crypt consistent.
authorJeff Trawick <trawick@apache.org>
Wed, 4 Apr 2007 18:37:30 +0000 (18:37 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 4 Apr 2007 18:37:30 +0000 (18:37 +0000)
This apparently fixes some oddities on TPF.

Submitted by: David Jones <oscaremma gmail.com>
Reviewed by:  wrowe, trawick

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

support/htpasswd.c

index 9468a0ce6ada4086e93ff1a33dbb98593cbb9a41..bd7e203f8ed59d1733132a5f6cfe46eb23ddc70a 100644 (file)
@@ -175,7 +175,7 @@ static int mkrecord(char *user, char *record, apr_size_t rlen, char *passwd,
         apr_cpystrn(cpw,pw,sizeof(cpw));
         break;
 
-#if !(defined(WIN32) || defined(NETWARE))
+#if (!(defined(WIN32) || defined(TPF) || defined(NETWARE)))
     case ALG_CRYPT:
     default:
         (void) srand((int) time((time_t *) NULL));
@@ -435,7 +435,7 @@ int main(int argc, const char * const argv[])
     check_args(pool, argc, argv, &alg, &mask, &user, &pwfilename, &password);
 
 
-#if defined(WIN32) || defined(NETWARE)
+#if defined(WIN32) || defined(TPF) || defined(NETWARE)
     if (alg == ALG_CRYPT) {
         alg = ALG_APMD5;
         apr_file_printf(errfile, "Automatically using MD5 format." NL);