OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 16-Mar-2003 17:07:21
Branch: HEAD Handle: 2003031616072000
Modified files:
openpkg-src/sasl sasl.spec
Log:
Michael Schloh is right: as the following test program proofed, Linux
and Solaris getpwent() does _NOT_ provide the passwords of non-YP/NIS
users while FreeBSD getpwent() does it correctly. So we have to use
"shadow" there..
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>
int main(int argc, char *argv[])
{
struct passwd *pw;
while ((pw = getpwent()) != NULL)
printf("user=<%s> passwd=<%s>\n", pw->pw_name, pw->pw_passwd);
}
Summary:
Revision Changes Path
1.65 +4 -1 openpkg-src/sasl/sasl.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/sasl/sasl.spec
============================================================================
$ cvs diff -u -r1.64 -r1.65 sasl.spec
--- openpkg-src/sasl/sasl.spec 16 Mar 2003 15:56:56 -0000 1.64
+++ openpkg-src/sasl/sasl.spec 16 Mar 2003 16:07:20 -0000 1.65
@@ -237,7 +237,10 @@
%if "%{with_pam}" == "yes"
l_authmech="pam"
%else
- l_authmech="getpwent"
+ case "%{l_target}" in
+ *-linux* | *-solaris* ) l_authmech="shadow" ;;
+ * ) l_authmech="getpwent" ;;
+ esac
%endif
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]