Return to cmdbuf.c CVS log | Up to [local] / src / usr.bin / less |
version 1.18, 2019/05/15 19:06:01 | version 1.19, 2019/06/28 13:35:01 | ||
---|---|---|---|
|
|
||
/* Make history file readable only by owner. */ | /* Make history file readable only by owner. */ | ||
r = fstat(fileno(f), &statbuf); | r = fstat(fileno(f), &statbuf); | ||
if (r < 0 || !S_ISREG(statbuf.st_mode)) | if (r == -1 || !S_ISREG(statbuf.st_mode)) | ||
/* Don't chmod if not a regular file. */ | /* Don't chmod if not a regular file. */ | ||
do_chmod = 0; | do_chmod = 0; | ||
if (do_chmod) | if (do_chmod) |