demand.c: fixed a very minor problem where the top of the file claimed

to be auth.c.  pr bin/2539
main.c:  don't try to delete pid file "", since that will end up being
	a directory.  pr bin/2388 and bin/2551
This commit is contained in:
explorer 1996-08-10 20:39:35 +00:00
parent 66917416dd
commit aa3ab1608c
4 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/*
* auth.c - PPP authentication and phase control.
* demand.c - PPP authentication and phase control.
*
* Copyright (c) 1993 The Australian National University.
* All rights reserved.
@ -18,7 +18,7 @@
*/
#ifndef lint
static char rcsid[] = "$Id: demand.c,v 1.1 1996/03/15 03:09:09 paulus Exp $";
static char rcsid[] = "$Id: demand.c,v 1.2 1996/08/10 20:39:35 explorer Exp $";
#endif
#include <stdio.h>

View File

@ -18,7 +18,7 @@
*/
#ifndef lint
static char rcsid[] = "$Id: main.c,v 1.18 1996/03/21 18:25:57 jtc Exp $";
static char rcsid[] = "$Id: main.c,v 1.19 1996/08/10 20:39:36 explorer Exp $";
#endif
#include <stdio.h>
@ -502,7 +502,7 @@ main(argc, argv)
locked = 0;
}
if (!demand) {
if (!demand && pidfilename[0] != 0) {
if (unlink(pidfilename) < 0 && errno != ENOENT)
syslog(LOG_WARNING, "unable to delete pid file: %m");
pidfilename[0] = 0;

View File

@ -1,5 +1,5 @@
/*
* auth.c - PPP authentication and phase control.
* demand.c - PPP authentication and phase control.
*
* Copyright (c) 1993 The Australian National University.
* All rights reserved.
@ -18,7 +18,7 @@
*/
#ifndef lint
static char rcsid[] = "$Id: demand.c,v 1.1 1996/03/15 03:09:09 paulus Exp $";
static char rcsid[] = "$Id: demand.c,v 1.2 1996/08/10 20:39:35 explorer Exp $";
#endif
#include <stdio.h>

View File

@ -18,7 +18,7 @@
*/
#ifndef lint
static char rcsid[] = "$Id: main.c,v 1.18 1996/03/21 18:25:57 jtc Exp $";
static char rcsid[] = "$Id: main.c,v 1.19 1996/08/10 20:39:36 explorer Exp $";
#endif
#include <stdio.h>
@ -502,7 +502,7 @@ main(argc, argv)
locked = 0;
}
if (!demand) {
if (!demand && pidfilename[0] != 0) {
if (unlink(pidfilename) < 0 && errno != ENOENT)
syslog(LOG_WARNING, "unable to delete pid file: %m");
pidfilename[0] = 0;