summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Osterried <thomas@osterried.de>2010-03-31 08:06:59 +0000
committerThomas Osterried <thomas@osterried.de>2010-03-31 08:06:59 +0000
commit56a7b3020687d420756434ec2017ee4972b529fb (patch)
tree9e83d85a33f79d10d363a3fbcbef40968d237428
parent91e134d79d1a4828875142f732a74c4c609b5c92 (diff)
Christoph Rueckert <dk2crn> had an issue with OpenSuse 11.2.
login -f -h <protocol> <as_user> did not work. login -h <protocol> -f <as_user> 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 ;)
-rw-r--r--ax25/axspawn.c6
1 files 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;