version 1.4, 1998/11/18 01:03:16 |
version 1.5, 1998/11/18 02:57:22 |
|
|
register int cnt, fd, left, wret; |
register int cnt, fd, left, wret; |
struct iovec localiov[6]; |
struct iovec localiov[6]; |
int forked = 0; |
int forked = 0; |
|
struct stat st; |
|
|
if (iovcnt > sizeof(localiov) / sizeof(localiov[0])) |
if (iovcnt > sizeof(localiov) / sizeof(localiov[0])) |
return ("too many iov's (change code in wall/ttymsg.c)"); |
return ("too many iov's (change code in wall/ttymsg.c)"); |
|
|
device); |
device); |
return (errbuf); |
return (errbuf); |
} |
} |
|
|
|
if (stat(device, &st) < 0) |
|
return (NULL); |
|
if ((st.st_mode & S_IWGRP) == 0) |
|
return (NULL); |
|
|
seteuid(geteuid()); |
seteuid(geteuid()); |
|
|