From 08e4eaabf2d6188141c3ef36a4a5250ae7ac2782 Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 28 Nov 1999 15:50:08 +0000 Subject: Make -foreground a proper option (allowing ``allow mode foreground'', ``set mode foreground'' etc. --- usr.sbin/ppp/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ppp/main.c') diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index a108f93..63ea644 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -245,9 +245,6 @@ ProcessArgs(int argc, char **argv, struct switches *sw) } else if (strcmp(cp, "quiet") == 0) { sw->quiet = 1; optc--; /* this option isn't exclusive */ - } else if (strcmp(cp, "foreground") == 0) { - sw->mode = PHYS_BACKGROUND; /* Kinda like background mode */ - sw->fg = 1; } else Usage(); break; @@ -258,6 +255,8 @@ ProcessArgs(int argc, char **argv, struct switches *sw) default: sw->mode = newmode; + if (newmode == PHYS_FOREGROUND) + sw->fg = 1; } } -- cgit v1.1