version 1.7, 1998/07/10 08:06:28 |
version 1.8, 1999/11/11 15:28:15 |
|
|
*/ |
*/ |
|
|
if (strcmp(instance, "root") != 0) |
if (strcmp(instance, "root") != 0) |
(void)sprintf(tkt_location, "%s%d.%s", |
snprintf(tkt_location, sizeof(tkt_location), "%s%d.%s", |
TKT_ROOT, pw->pw_uid, tty); |
TKT_ROOT, pw->pw_uid, tty); |
else |
else |
(void)sprintf(tkt_location, "%s_root_%d.%s", |
snprintf(tkt_location, sizeof(tkt_location), "%s_root_%d.%s", |
TKT_ROOT, pw->pw_uid, tty); |
TKT_ROOT, pw->pw_uid, tty); |
krbtkfile_env = tkt_location; |
krbtkfile_env = tkt_location; |
(void)krb_set_tkt_string(tkt_location); |
(void)krb_set_tkt_string(tkt_location); |
|
|
|
|
if ((fd = open(file, O_RDWR, 0)) < 0) |
if ((fd = open(file, O_RDWR, 0)) < 0) |
goto out; |
goto out; |
|
|
bzero(buf, BUFSIZ); |
bzero(buf, sizeof(buf)); |
|
|
for (i = 0; i < statb.st_size; i += BUFSIZ) |
for (i = 0; i < statb.st_size; i += BUFSIZ) |
if (write(fd, buf, BUFSIZ) != BUFSIZ) { |
if (write(fd, buf, BUFSIZ) != BUFSIZ) { |