summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-11-28 15:50:08 +0000
committerbrian <brian@FreeBSD.org>1999-11-28 15:50:08 +0000
commit08e4eaabf2d6188141c3ef36a4a5250ae7ac2782 (patch)
tree2ff6d4532f47c2ee0b240dc4de85ac37083ea5c0 /usr.sbin/ppp/main.c
parent987e083f00337d507f142a6cd79653fa2bdec0cd (diff)
downloadFreeBSD-src-08e4eaabf2d6188141c3ef36a4a5250ae7ac2782.zip
FreeBSD-src-08e4eaabf2d6188141c3ef36a4a5250ae7ac2782.tar.gz
Make -foreground a proper option (allowing ``allow mode foreground'',
``set mode foreground'' etc.
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c5
1 files changed, 2 insertions, 3 deletions
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;
}
}
OpenPOWER on IntegriCloud