projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
file reorg, pathnames.h, paths.h
[unix-history]
/
usr
/
src
/
libexec
/
talkd
/
process.c
diff --git
a/usr/src/libexec/talkd/process.c
b/usr/src/libexec/talkd/process.c
index
69616ba
..
ae73218
100644
(file)
--- a/
usr/src/libexec/talkd/process.c
+++ b/
usr/src/libexec/talkd/process.c
@@
-16,7
+16,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)process.c 5.
7
(Berkeley) %G%";
+static char sccsid[] = "@(#)process.c 5.
8
(Berkeley) %G%";
#endif /* not lint */
/*
#endif /* not lint */
/*
@@
-35,6
+35,7
@@
static char sccsid[] = "@(#)process.c 5.7 (Berkeley) %G%";
#include <netinet/in.h>
#include <protocols/talkd.h>
#include <netinet/in.h>
#include <protocols/talkd.h>
+#include <paths.h>
char *strcpy();
CTL_MSG *find_request();
char *strcpy();
CTL_MSG *find_request();
@@
-173,7
+174,7
@@
find_user(name, tty)
}
#define SCMPN(a, b) strncmp(a, b, sizeof (a))
status = NOT_HERE;
}
#define SCMPN(a, b) strncmp(a, b, sizeof (a))
status = NOT_HERE;
- (void) strcpy(ftty,
"/dev/"
);
+ (void) strcpy(ftty,
_PATH_DEV
);
while (fread((char *) &ubuf, sizeof ubuf, 1, fd) == 1)
if (SCMPN(ubuf.ut_name, name) == 0) {
if (*tty == '\0') {
while (fread((char *) &ubuf, sizeof ubuf, 1, fd) == 1)
if (SCMPN(ubuf.ut_name, name) == 0) {
if (*tty == '\0') {