xinstall: Check result of fchmod
This commit is contained in:
parent
5e4e6aeb3e
commit
a8a9b3bae9
@ -102,7 +102,8 @@ install(const char *s1, const char *s2, int depth)
|
|||||||
}
|
}
|
||||||
concat(f1, s1, f2, s2);
|
concat(f1, s1, f2, s2);
|
||||||
|
|
||||||
fchmod(fileno(f2), mode);
|
if (fchmod(fileno(f2), mode) < 0)
|
||||||
|
eprintf("fchmod %s:", s2);
|
||||||
|
|
||||||
if (fclose(f2) == EOF)
|
if (fclose(f2) == EOF)
|
||||||
eprintf("fclose %s:", s2);
|
eprintf("fclose %s:", s2);
|
||||||
|
Loading…
Reference in New Issue
Block a user