version 1.20, 2017/03/28 09:14:43 |
version 1.21, 2019/06/28 13:35:01 |
|
|
while ((t = getc(fp)) != EOF) |
while ((t = getc(fp)) != EOF) |
(void)putc(t, nf); |
(void)putc(t, nf); |
(void)fflush(nf); |
(void)fflush(nf); |
if (fstat(fileno(nf), &statb) < 0) |
if (fstat(fileno(nf), &statb) == -1) |
modtime = 0; |
modtime = 0; |
else |
else |
modtime = statb.st_mtime; |
modtime = statb.st_mtime; |
|
|
(void)rm(tempname); |
(void)rm(tempname); |
goto out; |
goto out; |
} |
} |
if (stat(tempname, &statb) < 0) { |
if (stat(tempname, &statb) == -1) { |
warn("%s", tempname); |
warn("%s", tempname); |
goto out; |
goto out; |
} |
} |