We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce61412 commit 4c2a684Copy full SHA for 4c2a684
rqd/rqd/rqcore.py
@@ -1527,6 +1527,11 @@ def ownFrameDir(self):
1527
# Ensure logdir is owned by this job user. If it doesn't exist it will get
1528
# created under the correct user when RqdLogger is initialized
1529
if os.path.isdir(self.runFrame.log_dir):
1530
+ # Skip chown on Windows as it's not supported for UNC paths and file ownership
1531
+ # works differently on Windows
1532
+ if platform.system() == 'Windows':
1533
+ log.debug("Skipping chown on Windows for log_dir: %s", self.runFrame.log_dir)
1534
+ return
1535
try:
1536
rqd.rqutil.permissionsHigh()
1537
os.chown(self.runFrame.log_dir, self.runFrame.uid, self.runFrame.gid)
0 commit comments