mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
Add an extra warning message to check_private_dir
This commit is contained in:
parent
5efbd41daa
commit
1e8f68a9c7
1 changed files with 6 additions and 2 deletions
|
@ -2270,10 +2270,14 @@ check_private_dir,(const char *dirname, cpd_check_t check,
|
|||
* permissions on the directory will be checked again below.*/
|
||||
fd = open(sandbox_intern_string(dirname), O_NOFOLLOW);
|
||||
|
||||
if (fd == -1)
|
||||
if (fd == -1) {
|
||||
log_warn(LD_FS, "Could not reopen recently created directory %s: %s",
|
||||
dirname,
|
||||
strerror(errno));
|
||||
return -1;
|
||||
else
|
||||
} else {
|
||||
close(fd);
|
||||
}
|
||||
|
||||
} else if (!(check & CPD_CHECK)) {
|
||||
log_warn(LD_FS, "Directory %s does not exist.", dirname);
|
||||
|
|
Loading…
Add table
Reference in a new issue