This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to fix file permission in CVS?
On Fri, Feb 26, 2010 at 7:33 AM, Eirik Byrkjeflot Anonsen wrote:
> "Doug Kwan (ÐÐÂÐÐÐ)" writes:
>> Â Â I checked in a shell script in src/gold/testsuite but forgot the
>> set the execution permission. ÂNow the file is checked out as a
>> non-executable shell script. ÂWhat is a good way to fix it? ÂThanks.
>
> If I remember correctly, CVS stores the executable bit for files by
> setting the executable bit on the ,v file on the server. ÂSo I think the
> only way to fix this is to log on to the CVS server itself and chmod +x
> the correct ,v file in the repository.
that is the nicest way of doing it, but does require talking to a
server admin. you can also abuse the system by removing the file,
committing the removal, then re-adding the file with the +x bits set.
obvious downside here is that the cvs log has two entries added to it
(one removal and one restore).
-mike