sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit a8a9b3bae9b021c328db27f426dcaf90e01ca030
parent 5e4e6aeb3ee843f1fb1bc3de1c2e682f20c61625
Author: Michael Forney <mforney@mforney.org>
Date:   Tue,  6 Dec 2016 02:16:57 -0800

xinstall: Check result of fchmod

Diffstat:
Mxinstall.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xinstall.c b/xinstall.c @@ -102,7 +102,8 @@ install(const char *s1, const char *s2, int depth) } concat(f1, s1, f2, s2); - fchmod(fileno(f2), mode); + if (fchmod(fileno(f2), mode) < 0) + eprintf("fchmod %s:", s2); if (fclose(f2) == EOF) eprintf("fclose %s:", s2);