Wrong stat object used when updating file permissions #7
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wrong stat object used when updating file permissions
Priority: High
Component: fs.py
Type: Bug
Description
When updating permissions in the
rsync()function, the code usesdst_stat.st_modeinstead ofsrc_stat.st_mode, which is a logic error.Location
curateipsum/fs.py:369-372Current Code
Problem
The code compares source and destination modes, determines they're different, but then sets the destination to... the destination's current mode. This is a no-op.
Proposed Solution
Impact
High - Permissions are never updated correctly, defeating the purpose of the rsync functionality.