X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmain.c;h=30596d160b47b8773700143f2c5d19670d32a20e;hb=eae3732a9b3b8a03877a34c1819490a82cf87d5e;hp=4e1e3de522e4ea4dda2dabd9a600e826b4cc4ffa;hpb=9ec074e3ff0ef6bbdd673bfd199713269748f08d;p=ppp.git diff --git a/pppd/main.c b/pppd/main.c index 4e1e3de..30596d1 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: main.c,v 1.2 1993/11/23 23:40:53 paulus Exp $"; +static char rcsid[] = "$Id: main.c,v 1.3 1993/12/14 05:16:01 paulus Exp $"; #endif #define SETSID @@ -223,6 +223,11 @@ main(argc, argv) pid = getpid(); + if (!ppp_available()) { + fprintf(stderr, "Sorry - PPP is not available on this system\n"); + exit(1); + } + /* * Initialize to the standard option set, then parse, in order, * the system options file, the user's options file, and the command