version 1.2, 1996/06/26 05:31:28 |
version 1.3, 1996/08/03 20:16:57 |
|
|
|
|
#include "panic.h" |
#include "panic.h" |
#include "at.h" |
#include "at.h" |
|
#include "privs.h" |
|
|
/* File scope variables */ |
/* File scope variables */ |
|
|
|
|
/* Something fatal has happened, print error message and exit. |
/* Something fatal has happened, print error message and exit. |
*/ |
*/ |
fprintf(stderr, "%s: %s\n", namep, a); |
fprintf(stderr, "%s: %s\n", namep, a); |
if (fcreated) |
if (fcreated) { |
|
PRIV_START |
unlink(atfile); |
unlink(atfile); |
|
PRIV_END |
|
} |
|
|
exit(EXIT_FAILURE); |
exit(EXIT_FAILURE); |
} |
} |
|
|
/* Some operating system error; print error message and exit. |
/* Some operating system error; print error message and exit. |
*/ |
*/ |
perror(a); |
perror(a); |
if (fcreated) |
if (fcreated) { |
|
PRIV_START |
unlink(atfile); |
unlink(atfile); |
|
PRIV_END |
|
} |
|
|
exit(EXIT_FAILURE); |
exit(EXIT_FAILURE); |
} |
} |