diff options
author | brian <brian@FreeBSD.org> | 1999-11-28 15:50:08 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-11-28 15:50:08 +0000 |
commit | 08e4eaabf2d6188141c3ef36a4a5250ae7ac2782 (patch) | |
tree | 2ff6d4532f47c2ee0b240dc4de85ac37083ea5c0 /usr.sbin/ppp/main.c | |
parent | 987e083f00337d507f142a6cd79653fa2bdec0cd (diff) | |
download | FreeBSD-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.c | 5 |
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; } } |