This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 165521 - CVS execute permissions not set correctly
Summary: CVS execute permissions not set correctly
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
Depends on:
Reported: 2009-05-19 17:59 UTC by tomknight
Modified: 2010-07-30 09:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description tomknight 2009-05-19 17:59:55 UTC
When you add a file into CVS that has the execute permission bit set NetBeans is removing that permission (before the
file is added?).

When you check in a file to CVS (using command line cvs) which has the execute bit set it will be set on the CVS server,
on checkout cvs will set the execute permission on the file on top of your normal umask.

NetBeans seems to remove this permission before the file gets to CVS so on checkout the permission isn't set, this then
needs to be changed on the CVS server.

This is what happens when using command line cvs:

$ umask 
$ touch
$ chmod 750
$ ls -l 
-rwxr-x--- 1 tom tom 0 May 19 17:50
$ cvs add
cvs add: use `cvs commit' to add this file permanently
$ cvs ci -m "foo"
initial revision: 1.1
$ rm
$ cvs up
cvs update: warning: `' was lost
$ ls -l 
-rwxrwxr-x 1 tom tom 0 2009-05-19 17:52

When I commit the file using NetBeans and check it out it doesn't have have the execute permissions set:

$ ls -l
-rw-rw-r-- 1 tom tom 0 2009-05-19 17:54

I don't actually use NetBeans (a text editor does me for my coding needs) but some of my co-workers do and have noticed
this on projects we work on together. I've tested this using the following version:

Product Version: NetBeans IDE 6.5.1 (Build 200903060201)

Java: 1.5.0_16; Java HotSpot(TM) 64-Bit Server VM 1.5.0_16-b02

System: Linux version 2.6.24-23-generic running on amd64; UTF-8; en_GB (nb)

Userdir: /home/mark/.netbeans/6.5
Comment 1 lanceatchison 2009-09-22 22:47:59 UTC
I am seeing this behavior without NetBeans ever checking in the file:

- I created an executable shell script
- I checked it in with command line CVS.
- I checked it out with command line CVS - execute permission is set.
- I checked it out with NetBeans - execute permission is not set.