From 56a7b3020687d420756434ec2017ee4972b529fb Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Wed, 31 Mar 2010 08:06:59 +0000 Subject: Christoph Rueckert had an issue with OpenSuse 11.2. login -f -h did not work. login -h -f did work. Imho, OpenSUSE meessed up login's getopt()... On the other hand, we have no problems to switch the position of arguments - as long as there's not another linux demanding another position ;) --- ax25/axspawn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ax25/axspawn.c b/ax25/axspawn.c index 81bdfd1..544abea 100644 --- a/ax25/axspawn.c +++ b/ax25/axspawn.c @@ -1,6 +1,6 @@ /* * - * $Id: axspawn.c,v 1.23 2009/06/27 22:30:20 ralf Exp $ + * $Id: axspawn.c,v 1.24 2010/03/31 08:06:59 dl9sau Exp $ * * axspawn.c - run a program from ax25d. * @@ -1770,11 +1770,11 @@ again: * out (abuse, ..) by changing his gid in passwd to for e.g. * 65534 (nogroup). */ + chargv[chargc++] = "-h"; + chargv[chargc++] = protocol; if (pwtype != PW_CLEARTEXT /* PW_SYS or PW_MD5 are already authenticated */ || pwcheck == 2 || (pwcheck == 3 && (pw->pw_gid == user_gid || is_guest)) || !strcmp(pw->pw_passwd, "+")) chargv[chargc++] = "-f"; - chargv[chargc++] = "-h"; - chargv[chargc++] = protocol; chargv[chargc++] = as_user; } chargv[chargc] = NULL; -- cgit v1.2.3