mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Change escriptize archive permissions to a+x
By default, executables in paths such as /bin and /usr/local/bin have the mode saying they can be executed by all. The current version of escriptize only sets u+x, which creates problems when copied directly in repositories and requiring other programs to interact with them. This change makes rebar follow the standard of linuxes and unixes by setting the permission flag to a+x, allowing users, the group and others to execute it.
This commit is contained in:
parent
452e7c8d9f
commit
57fc7f6474
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ escriptize(Config, AppFile) ->
|
||||||
|
|
||||||
%% Finally, update executable perms for our script
|
%% Finally, update executable perms for our script
|
||||||
{ok, #file_info{mode = Mode}} = file:read_file_info(Filename),
|
{ok, #file_info{mode = Mode}} = file:read_file_info(Filename),
|
||||||
ok = file:change_mode(Filename, Mode bor 8#00100),
|
ok = file:change_mode(Filename, Mode bor 8#00111),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
clean(Config, AppFile) ->
|
clean(Config, AppFile) ->
|
||||||
|
|
Loading…
Reference in a new issue