Thanks for the report!

I've just tracked down this bug in the configure tests.
Here's the patch that will be in the next test release:
[I include this patch just so you'll know -- you'd need very
 recent versions of autoconf and automake to apply and use it. ]

        su doesn't work on Solaris2.6.
        * lib-check.m4: When checking for struct spwd.sp_pwdp, also include
        <shadow.h>.  Reported by Dragos Harabor.

Index: m4/lib-check.m4
===================================================================
RCS file: /fetish/shellutils/m4/lib-check.m4,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- m4/lib-check.m4     2000/03/10 09:08:53     1.6
+++ m4/lib-check.m4     2000/05/05 11:39:25     1.7
@@ -42,10 +42,17 @@
   # shadow passwords.  UnixWare 7 needs -lgen.
   AC_SEARCH_LIBS(getspnam, [shadow sec gen])
 
+  AC_CHECK_HEADERS(shadow.h)
+
   # Requirements for su.c.
-  AC_CHECK_MEMBERS((struct spwd.sp_pwdp))
+  shadow_includes="\
+$ac_includes_default
+#if HAVE_SHADOW_H
+# include <shadow.h>
+#endif
+"
+  AC_CHECK_MEMBERS((struct spwd.sp_pwdp),,,[$shadow_includes])
   AC_CHECK_FUNCS(getspnam)
-  AC_CHECK_HEADERS(shadow.h)
 
   # SCO-ODT-3.0 is reported to need -lufc for crypt.
   # NetBSD needs -lcrypt for crypt.

"Dragos Harabor" <[EMAIL PROTECTED]> writes:
| I've just compiled both 'su (GNU sh-utils) 2.0g' and 'su (GNU sh-utils)
| 2.0' on a Sun Solaris 2.6 platform (latest patches) and su does not work,
| no matter what I do I get a 'su: incorrect password'. I cannot su to root
| or any other regular user.
...

Reply via email to