Virtualbox 1.6.2 on MacOSX.
The guest is Linux (Ubuntu, hardy heron).
In a shared folder, I created hello.c.
On the guest, I compiled it, but the execute permission is missing:
vbox:/mac$ gcc hello.c
vbox:/mac$ ls -l
-rw------- 1 6362 2008-06-18 10:26 a.out
-rw------- 1 79 2008-06-18 10:13 hello.c
Manually setting the x bit does not work:
vbox:/mac$ chmod +x a.out
vbox:/mac$ ls -l
-rw------- 1 6362 2008-06-18 10:26 a.out
-rw------- 1 79 2008-06-18 10:13 hello.c
However, running the "chmod +x a.out" on the mac does properly
change the mode and allows the guest to run the binary:
vbox:/mac$ ls -l
-rwx--x--x 1 6362 2008-06-18 10:26 a.out
-rw------- 1 79 2008-06-18 10:13 hello.c
vbox:/mac$ ./a.out
Hello from C