summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2012-07-09 20:04:55 -0400
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-07-10 10:42:41 +0200
commit57fc7f64745bc7ef3b369ec19efcb3e62b392485 (patch)
treee3d4e756ae0f016ccac9a8a6bc4de6b5de890519
parent452e7c8d9fbc6a5aa3836c89be38a51f3da107c7 (diff)
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.
-rw-r--r--src/rebar_escripter.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_escripter.erl b/src/rebar_escripter.erl
index 1258898..b51a2a5 100644
--- a/src/rebar_escripter.erl
+++ b/src/rebar_escripter.erl
@@ -84,7 +84,7 @@ escriptize(Config, AppFile) ->
%% Finally, update executable perms for our script
{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.
clean(Config, AppFile) ->