This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can't execute scripts from a samba share with 1.7


On 10/08/2009 18:04, Corinna Vinschen wrote:
On Aug 10 17:42, Jon TURNEY wrote:
I also have this problem in it's second (noacl) form. With this mount

//necker/jon on /home/jon type smbfs (binary,exec,noacl,user)

running the t.sh test script fails in a directory on this mount

Jon@byron ~
$ ls -al t.sh
-rwxr-xr-x 1 Jon None 19 2009-08-06 15:46 t.sh

Jon@byron ~
$ ./t.sh
-bash: ./t.sh: /bin/sh: bad interpreter: Permission denied

but works fine in a different directory

This is really strange. The bad interpreter message means that bash could not start /bin/sh. I can only reproduce this effect if I chmod -x /bin/sh. Did you create an strace and tried to see what happens?

Jon@byron ~ $ strace ./t.sh strace: error creating process \\necker\jon\t.sh, (error 193)

but I thought this was expected (strace not being a cygwin program), as it fails the same way in a directory which is on a different (local) mount.

Hmm... after a bit more fiddling, 'strace bash ./t.sh' outputs the expected 'foo', but 'strace bash -c ./t.sh' fails with the same error (output attached), which on reflection is I suppose expected...

Attachment: puzzling-evidence.strace
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]