From e2adf099207424977fd064eab389671dcd065a72 Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Sun, 13 Apr 2008 23:39:52 +0000 Subject: typo: embeded is embedded --- ax25/axspawn.8 | 4 ++-- ax25/axspawn.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'ax25') diff --git a/ax25/axspawn.8 b/ax25/axspawn.8 index 8b0ec2d..db34d23 100644 --- a/ax25/axspawn.8 +++ b/ax25/axspawn.8 @@ -84,8 +84,8 @@ properly. Allow connecting ax25 users to change their username for login. They'll be asked for their real login name. .TP 5 -.B -e, --embeded -Special treatment for axspawn on non-standard conform embeded devices. +.B -e, --embedded +Special treatment for axspawn on non-standard conform embedded devices. I.e. openwrt has no true /bin/login: if you use it as a real login program, it raises a security hole. .TP 5 diff --git a/ax25/axspawn.c b/ax25/axspawn.c index a954a1f..2b3615d 100644 --- a/ax25/axspawn.c +++ b/ax25/axspawn.c @@ -1,6 +1,6 @@ /* * - * $Id: axspawn.c,v 1.15 2008/04/13 23:09:31 dl9sau Exp $ + * $Id: axspawn.c,v 1.16 2008/04/13 23:39:52 dl9sau Exp $ * * axspawn.c - run a program from ax25d. * @@ -1352,7 +1352,7 @@ int main(int argc, char **argv) char changeuser = 0; char user_changed = 0; char rootlogin = 0; - char dumb_embeded_system = 0; + char dumb_embedded_system = 0; int pwtype = 0; int pwtype_orig = 0; char prompt[20]; @@ -1369,8 +1369,8 @@ int main(int argc, char **argv) changeuser = 1; if (!strcmp(argv[k], "-r") || !strcmp(argv[k], "--rootlogin")) rootlogin = 1; - if (!strcmp(argv[k], "-e") || !strcmp(argv[k], "--embeded")) - dumb_embeded_system = 1; + if (!strcmp(argv[k], "-e") || !strcmp(argv[k], "--embedded")) + dumb_embedded_system = 1; if ((!strcmp(argv[k], "-p") || !strcmp(argv[k], "--pwprompt")) && k < argc-1 ) { strncpy(prompt, argv[k+1], sizeof(prompt)); prompt[sizeof(prompt)-1] = '\0'; @@ -1688,7 +1688,7 @@ again: chargc = 0; envc = 0; - if (dumb_embeded_system) { + if (dumb_embedded_system) { int ret = -1; char *p = 0; @@ -1784,7 +1784,7 @@ again: sprintf(envp[envc++], "LESS=-d -E -F"); envp[envc] = NULL; - if (dumb_embeded_system) { + if (dumb_embedded_system) { if (setgid(pw->pw_gid) == -1) exit(1); if (setuid(pw->pw_uid) == -1) -- cgit v1.2.3