From 3ebf0be142ea19ee2b452d9403d6bc5b14cc41ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Fri, 11 Feb 2000 17:18:50 +0000 Subject: [PATCH] Corrections. --- CHANGES | 2 +- Makefile.org | 2 +- apps/passwd.c | 19 ++++++++++++------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CHANGES b/CHANGES index ec11b648c9..2e10a0f8c5 100644 --- a/CHANGES +++ b/CHANGES @@ -4,7 +4,7 @@ Changes between 0.9.4 and 0.9.5 [xx XXX 2000] - *) New 'passwd' tool, currently only -fcrypt is implemented. + *) New 'passwd' tool for crypt(3) and apr1 password hashes. [Bodo Moeller] *) Add command line password options to the remaining applications. diff --git a/Makefile.org b/Makefile.org index 257f6a5b66..d4f381e694 100644 --- a/Makefile.org +++ b/Makefile.org @@ -262,7 +262,7 @@ dclean: rehash: rehash.time rehash.time: certs @(OPENSSL="`pwd`/apps/openssl"; export OPENSSL; sh tools/c_rehash certs) - touch .rehash.time + touch rehash.time test: tests diff --git a/apps/passwd.c b/apps/passwd.c index 7e3eb7af16..06155979f4 100644 --- a/apps/passwd.c +++ b/apps/passwd.c @@ -1,6 +1,10 @@ /* apps/passwd.c */ -#if !defined(NO_DES) || !defined(NO_MD5) +#if defined NO_MD5 || defined CHARSET_EBCDIC +# define NO_APR1 +#endif + +#if !defined(NO_DES) || !defined(NO_APR1) #include #include @@ -12,10 +16,6 @@ #include #include -#if defined NO_MD5 || defined CHARSET_EBCDIC -# define NO_APR1 -#endif - #ifndef NO_DES # include #endif @@ -461,6 +461,11 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p, err: return 0; } -#endif - +#else +int MAIN(int argc, char **argv) + { + fputs("Program not available.\n", stderr) + EXIT(1); + } +#endif -- 2.34.1