Thanks for submitting this patch. I did have one question. Is there any value to keeping the third check, the stat() call? If stat were going to fail, then lstat would also fail, so I think the check can simply become
if ((lstat (pathname, &statbuf) < 0) || S_ISLNK (statbuf.st_mode) || (! S_ISREG(statbuf.st_mode))) return 0;
I certainly could be wrong :) if so please let me know.
« Back to merge proposal
Thanks for submitting this patch. I did have one question. Is there any value to keeping the third check, the stat() call? If stat were going to fail, then lstat would also fail, so I think the check can simply become
if ((lstat (pathname, &statbuf) < 0) statbuf. st_mode) ))
|| S_ISLNK (statbuf.st_mode)
|| (! S_ISREG(
return 0;
I certainly could be wrong :) if so please let me know.