Skip to content

Commit

Permalink
transport: tcp check that pull_path exists before chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
Sxderp committed Sep 27, 2024
1 parent e4aa82f commit cf8455f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/transport/tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,8 @@ async def publisher(
# Securely create socket
with salt.utils.files.set_umask(0o177):
self.pull_sock.start()
os.chmod(self.pull_path, self.pull_path_perms)
if self.pull_path:
os.chmod(self.pull_path, self.pull_path_perms)

def pre_fork(self, process_manager):
"""
Expand Down

0 comments on commit cf8455f

Please sign in to comment.