summaryrefslogtreecommitdiffstats
path: root/ax25/axspawn.c
diff options
context:
space:
mode:
authorThomas Osterried <thomas@osterried.de>2008-02-16 17:59:33 +0000
committerThomas Osterried <thomas@osterried.de>2008-02-16 17:59:33 +0000
commit3465aec7e1529ed865ff8c30bcacb677fe7ba47c (patch)
treeda21bf40f9dbcb8baa2d108408cde43e2520cbd9 /ax25/axspawn.c
parent4c9b83dd0099100641d7a75855e2db055d7928d8 (diff)
new feature: bcpasswd authentication type "unix".
user has now also the choice to use the standard unix passwd/shadow authentication
Diffstat (limited to 'ax25/axspawn.c')
-rw-r--r--ax25/axspawn.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/ax25/axspawn.c b/ax25/axspawn.c
index bdf14a9..14f897f 100644
--- a/ax25/axspawn.c
+++ b/ax25/axspawn.c
@@ -1,6 +1,6 @@
/*
*
- * $Id: axspawn.c,v 1.13 2007/03/11 13:58:34 dl9sau Exp $
+ * $Id: axspawn.c,v 1.14 2008/02/16 17:59:33 dl9sau Exp $
*
* axspawn.c - run a program from ax25d.
*
@@ -1379,7 +1379,7 @@ int main(int argc, char **argv)
read_config();
if (!pwtype)
- pwtype = (PW_CLEARTEXT | PW_SYS | PW_MD5);
+ pwtype = (PW_CLEARTEXT | PW_SYS | PW_MD5 | PW_UNIX);
pwtype_orig = pwtype;
if (!*prompt) {
if (gethostname(buf, sizeof(buf)) < 0) {
@@ -1560,11 +1560,15 @@ int main(int argc, char **argv)
again:
if (!(pwd = read_pwd(pw, &pwtype))) {
- if (!pwtype || pwtype != PW_CLEARTEXT) {
+ if ((!pwtype || pwtype != PW_CLEARTEXT) && (pwtype != PW_UNIX)) {
sleep (EXITDELAY);
return 1;
}
}
+ if (pwtype == PW_UNIX) {
+ pwtype = PW_CLEARTEXT;
+ pwcheck = 1;
+ }
if (pwtype != PW_CLEARTEXT) {
char pass_want[PASSSIZE+1];