]> git.ipfire.org Git - thirdparty/rsync.git/commit
acls: correct type/size for orig_umask
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Sun, 19 May 2024 00:44:22 +0000 (17:44 -0700)
committerAndrew Tridgell <andrew@tridgell.net>
Wed, 13 Nov 2024 20:15:14 +0000 (07:15 +1100)
commit62bb9bba022ce6a29f8c92307d5569c338b2f711
tree134f0947231998c6ef2875958fca984f61ca1b7f
parent66015104257ab2b9b28b21411abf0b25a979a954
acls: correct type/size for orig_umask

Since 05278935 (- Call mkdir_defmode() instead of do_mkdir(). - Define
orig_umask in this file, not options.c. - Made orig_umask a mode_t, not an
int., 2006-02-24), the type for the global was changed, and therefore on
systems where sizeof(mode_t) != sizeof(int), writes or reads to them will
overflow to adjacent bytes.

Change the type to the one used everywhere else and avoid this problem.

While at it, silence again a warning that is being triggered by
Apple's clang 15.
acls.c