LASTLOG
char LASTLOG[] = "/var/adm/lastlog"; /* last login info */
if ((lf = fopen(LASTLOG, "r")) == NULL)
(void) fprintf(stderr, "finger: %s open error\n", LASTLOG);
"finger: %s read error\n", LASTLOG);
LASTLOG);
if ((fdl = open(LASTLOG, O_RDWR|O_CREAT, 0444)) >= 0) {
if ((fdl = open(LASTLOG, O_RDWR|O_CREAT, 0444)) >= 0) {
if ((fdl = open(LASTLOG, O_RDWR|O_CREAT|O_DSYNC, 0444)) >= 0) {