This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
coreutils: install.exe.manifest file needs execute permissions
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-apps at cygwin dot com
- Date: Tue, 19 Aug 2008 21:47:26 +0200
- Subject: coreutils: install.exe.manifest file needs execute permissions
- Reply-to: cygwin-apps at cygwin dot com
Hi,
I'm just hacking setup.exe so that the permission info in the tar
archives is used to set real POSIX permissions on the extracted files.
The permission settings already look good, however, while testing, I
started bash from a fresh install and got these messages:
Copying skeleton files.
These files are for the user to personalise
their cygwin experience.
These will never be overwritten.
bash: /usr/bin/install: Permission denied
bash: /usr/bin/install: Permission denied
bash: /usr/bin/install: Permission denied
The problem is that the /usr/bin/install.exe.manifest file has no
execute permissions:
$ ls -l /usr/bin/install.exe*
-rwxr-xr-x 1 corinna Users 146432 Jun 2 17:10 /usr/bin/install.exe
-rw-r--r-- 1 corinna Users 570 Jun 2 17:08 /usr/bin/install.exe.manifest
$ /usr/bin/install
bash: /usr/bin/install: Permission denied
$ chmod +x install.exe.manifest
$ /usr/bin/install
/usr/bin/install: missing file operand
[...]
For the executables with manifest files to work correctly, the manifest
files *must* be executable. This is usually not a problem with the old
setup for 1.5, but if we want real POSIX perms with setup for 1.7, the
manifest files must be stored in the tar files with execute permissions
set.
This affects
- coreutils (install.exe.manifest)
- patch (patch.exe.manifest)
- texinfo (install-info.exe.manifest)
Patch and texinfo both come with manifest files which have execute
permissions set, just coreutils needs to be tweaked. Eric, would you
mind to upload a new coreutils for 1.7?
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat