[Github-comments] [geany/geany] Run script permission denied (#2374)

Oskar notifications at xxxxx
Sat Oct 19 18:01:21 UTC 2019


The "run" build commands don't work on my system.

the opened term said the run script was not executable.

Running the script manually (via `sh` as implemented in `build.c`) yields
```
oskar at torres ~ % /bin/sh -c /tmp/geany_run_script_HVQX9Z.sh
/bin/sh: /tmp/geany_run_script_HVQX9Z.sh: Permission denied
```

Which make sense since the file is not marked as executable:
```
oskar at torres ~ % ls -l /tmp/geany_run_script_HVQX9Z.sh
.rw-rw-r-- 256 oskar 19 Oct 19:23 /tmp/geany_run_script_HVQX9Z.sh
```

As can be seen in `build.c`, executable permissions are only set on apple platforms:

https://github.com/geany/geany/blob/75def8a24eb2dab8d376ae051806128827d34fbe/src/build.c#L1172-L1184

I changed this in my PR #2372 which solves the problem for me. I'm not sure if i'm missing something here.

I don't think passing the script through `sh` circumvents the need for execution rights but i'm not an expert on unix permissions so maybe someone else knows why this was expected to work and/or works for other people?

Thanks!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2374
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20191019/8ac00936/attachment.html>


More information about the Github-comments mailing list