version 1.5, 1997/12/23 03:28:14 |
version 1.6, 2000/08/02 04:10:49 |
|
|
p = FILENAME; |
p = FILENAME; |
if ((fd = open(p, O_RDWR|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR)) >= 0) |
if ((fd = open(p, O_RDWR|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR)) >= 0) |
goto dupit; |
goto dupit; |
if ((p = getenv("HOME")) != NULL && |
if ((p = getenv("HOME")) != NULL && *p != '\0' && |
(strlen(p) + strlen(FILENAME) + 1) < sizeof(path)) { |
(strlen(p) + strlen(FILENAME) + 1) < sizeof(path)) { |
(void)strcpy(path, p); |
(void)strcpy(path, p); |
(void)strcat(path, "/"); |
(void)strcat(path, "/"); |