Return to lex.c CVS log | Up to [local] / src / usr.bin / mail |
version 1.40, 2018/09/16 02:38:57 | version 1.41, 2019/06/28 13:35:01 | ||
---|---|---|---|
|
|
||
return(-1); | return(-1); | ||
} | } | ||
if (fstat(fileno(ibuf), &stb) < 0) { | if (fstat(fileno(ibuf), &stb) == -1) { | ||
warn("fstat"); | warn("fstat"); | ||
(void)Fclose(ibuf); | (void)Fclose(ibuf); | ||
return(-1); | return(-1); | ||
|
|
||
* and set pointers. | * and set pointers. | ||
*/ | */ | ||
readonly = 0; | readonly = 0; | ||
if ((i = open(name, O_WRONLY, 0)) < 0) | if ((i = open(name, O_WRONLY, 0)) == -1) | ||
readonly++; | readonly++; | ||
else | else | ||
(void)close(i); | (void)close(i); |