SCCS-vsn: libexec/talkd/process.c 5.7
-static char sccsid[] = "@(#)process.c 5.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)process.c 5.7 (Berkeley) %G%";
struct stat statb;
char ftty[20];
struct stat statb;
char ftty[20];
- if ((fd = fopen("/etc/utmp", "r")) == NULL) {
- perror("Can't open /etc/utmp");
+ if ((fd = fopen(_PATH_UTMP, "r")) == NULL) {
+ fprintf(stderr, "talkd: can't read %s.\n", _PATH_UTMP);
return (FAILED);
}
#define SCMPN(a, b) strncmp(a, b, sizeof (a))
return (FAILED);
}
#define SCMPN(a, b) strncmp(a, b, sizeof (a))