]> git.ipfire.org Git - thirdparty/zstd.git/commit
Use stat() to Check that File Should be chmod()-ed
authorW. Felix Handte <w@felixhandte.com>
Wed, 5 Aug 2020 16:00:12 +0000 (12:00 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 5 Aug 2020 16:00:12 +0000 (12:00 -0400)
commit0a8aacb4db881e43b41e7043605fcf82f45836c1
tree995d92964fc2cf30d1cf9b989e946b48fbeaaa39
parent7238cca1a1f00b27570b721b852317dfcfbffa72
Use stat() to Check that File Should be chmod()-ed

Rather than special-casing a check for `/dev/null`, this uses `stat()` to
avoid `chmod()`-ing any non-regular file. I believe this is the desirable
behavior. `UTIL_chmod()` is never called on directories at the moment, only
output files.
programs/fileio.c
programs/util.c
programs/util.h