History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CIB-1048
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Daniel Ostermeier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Pulse

cvs checkout is not preserving file permissions

Created: 11/Apr/07 03:56 PM   Updated: 19/Apr/07 12:34 PM
Component/s: Scm
Affects Version/s: 1.2.22
Fix Version/s: 1.2.23


 Description  « Hide
It appears that the javacvs package is not preserving file permissions, in particular, the executable permission, on files that are checked out. Instead, you get whatever the default umask is set to.


We need to investigate this further, to see if
a) if an upgrade fixes this issue
b) if we can patch the code.

 All   Comments   Change History      Sort Order:
Daniel Ostermeier - 11/Apr/07 04:06 PM
some info about cvs and perms.

http://durak.org/sean/pubs/software/cvsbook/CVS-keeps-changing-file-permissions_003b-why-does-it-do-that_003f.html

other things to note: java has trouble with the executable file permission, not supporting an api method for setting/ unsetting it.

Daniel Ostermeier - 12/Apr/07 02:40 PM
Looks like we can patch the code, in particular, the DefaultFileHandler implementation, which currently is ignoring the file permission details.


Daniel Ostermeier - 19/Apr/07 12:34 PM
Resolved. Updated the cvs lib, added code to apply the mode information (file permissions) to the newly created files.