Create Files with Desired Permissions; Avoid chmod(); Remove UTIL_chmod()

This commit is contained in:
W. Felix Handte
2021-05-05 13:10:34 -04:00
parent 4e10ff15f5
commit b87f97b3ea
3 changed files with 31 additions and 43 deletions
-9
View File
@@ -159,15 +159,6 @@ int UTIL_chmod(char const* filename, const stat_t* statbuf, mode_t permissions)
return chmod(filename, permissions);
}
int UTIL_umask(int mode) {
#if PLATFORM_POSIX_VERSION > 0
return umask(mode);
#else
/* do nothing, fake return value */
return mode;
#endif
}
int UTIL_setFileStat(const char *filename, const stat_t *statbuf)
{
int res = 0;