]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add isc_os_umask() function to get current umask
authorOndřej Surý <ondrej@isc.org>
Fri, 31 Mar 2023 08:06:03 +0000 (10:06 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 31 Mar 2023 12:52:59 +0000 (12:52 +0000)
commitaca7dd39618ee5e4945bdebc59fcda91dc51352f
tree2423ae8bc6597706a21c6ea38b15380d0794b662
parentd664e3c612f59fda31599bcbdccbaf1cb23fa012
Add isc_os_umask() function to get current umask

As it's impossible to get the current umask without modifying it at the
same time, initialize the current umask at the program start and keep
the loaded value internally.  Add isc_os_umask() function to access the
starttime umask.
lib/isc/include/isc/os.h
lib/isc/os.c