]> granicus.if.org Git - sudo/commit
Only retry mkdir or create with PERM_IOLOG if errno is EACCES.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 23 Mar 2017 23:00:27 +0000 (17:00 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 23 Mar 2017 23:00:27 +0000 (17:00 -0600)
commit4df6b62b56da94d6fbffd8ba5a247230f928e4fd
tree300b8faffd28483f2fd91807eb2da0f7011ab279
parent31b16fd3e98b21fac834cdd654b0076f5b95518f
Only retry mkdir or create with PERM_IOLOG if errno is EACCES.
Also always use PERM_IOLOG for mkdtemp() since we cannot retry
if it fails.  Since we are guaranteed to create a new directory
there's no real need to try w/o PERM_IOLOG in this case.
plugins/sudoers/iolog.c