[Bug 574758] New: "osc" cannot commit "read-only" files.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=574758 http://bugzilla.novell.com/show_bug.cgi?id=574758#c0 Summary: "osc" cannot commit "read-only" files. Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: D.Olsson@Netzwerk-Design.de QAContact: adrian@novell.com Found By: Third Party Developer/Partner Blocker: --- When trying to commit read-only files with "osc", the command returns in error without committing. How to reproduce: ----------------- - Create a new package (I used the Web frontend to create "testing_osc"). - Back on the command line: $ cd <working directory> $ ll total 8 drwxr-xr-x 2 dol users 4096 2010-01-27 10:38 .osc drwxr-xr-x 3 dol users 4096 2010-01-28 14:48 sudo $ osc up Updating sudo At revision 10. checking out new package testing_osc A testing_osc $ ll total 12 drwxr-xr-x 2 dol users 4096 2010-01-27 10:38 .osc drwxr-xr-x 3 dol users 4096 2010-01-28 14:48 sudo drwxr-xr-x 3 dol users 4096 2010-01-28 16:10 testing_osc $ ll testing_osc/ total 4 drwxr-xr-x 2 dol users 4096 2010-01-28 16:10 .osc $ cd testing_osc $ cp -a ../sudo/README.SUSE . $ ll total 8 drwxr-xr-x 2 dol users 4096 2010-01-28 16:10 .osc -r--r--r-- 1 dol users 400 2008-07-24 01:07 README.SUSE $ osc add README.SUSE A README.SUSE $ ll -R : total 8 drwxr-xr-x 2 dol users 4096 2010-01-28 16:10 .osc -r--r--r-- 1 dol users 400 2008-07-24 01:07 README.SUSE /.osc: total 24 -r--r--r-- 1 dol users 400 2008-07-24 01:07 README.SUSE -rw-r--r-- 1 dol users 25 2010-01-28 16:10 _apiurl -rw-r--r-- 1 dol users 44 2010-01-28 16:10 _files -rw-r--r-- 1 dol users 4 2010-01-28 16:10 _osclib_version -rw-r--r-- 1 dol users 12 2010-01-28 16:10 _package -rw-r--r-- 1 dol users 19 2010-01-28 16:10 _project $ osc commit Sending README.SUSE Transmitting file data .[Errno 13] Permission denied: '/home/dol/Documents/G+H Netzwerk-Design/Development/openSUSE_Build_Service/home:DOL2009:SLE10/testing_osc/.osc/README.SUSE' $ +w .osc/README.SUSE $ osc commit Sending README.SUSE Transmitting file data . Committed revision 1. $ ll -R : total 8 drwxr-xr-x 2 dol users 4096 2010-01-28 16:12 .osc -r--r--r-- 1 dol users 400 2008-07-24 01:07 README.SUSE /.osc: total 24 -r--r--r-- 1 dol users 400 2008-07-24 01:07 README.SUSE -rw-r--r-- 1 dol users 25 2010-01-28 16:10 _apiurl -rw-r--r-- 1 dol users 203 2010-01-28 16:12 _files -rw-r--r-- 1 dol users 4 2010-01-28 16:10 _osclib_version -rw-r--r-- 1 dol users 12 2010-01-28 16:10 _package -rw-r--r-- 1 dol users 19 2010-01-28 16:10 _project ==================================================================== As can be seen, when trying to do a "osc commit" after having added a read-only file, the command returns in error without doing the commit! Opening the ".osc/<filename>" for writing (u+w), the "osc commit" can be done successfully. Interestingly enough, "osc" sets the file permissions on its ".osc/<file>" back to read-only mode after the successful commit, which then (again) would result in an error, when trying to commit changes to the file later on. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=574758
http://bugzilla.novell.com/show_bug.cgi?id=574758#c1
--- Comment #1 from Dennis Olsson
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=574758
http://bugzilla.novell.com/show_bug.cgi?id=574758#c
yang xiaoyu
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=574758
http://bugzilla.novell.com/show_bug.cgi?id=574758#c2
Marcus Hüwe
participants (1)
-
bugzilla_noreply@novell.com