From: Pierre Habouzit Date: Sat, 19 May 2007 15:29:46 +0000 (+0200) Subject: make generated tools RO for real X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=87f0ade5709ed7f08271f6e73dec2112d96bfc97;p=apps%2Fmadmutt.git make generated tools RO for real Signed-off-by: Pierre Habouzit --- diff --git a/tools/cpkg2c.mll b/tools/cpkg2c.mll index cefc389..a3a3782 100644 --- a/tools/cpkg2c.mll +++ b/tools/cpkg2c.mll @@ -631,7 +631,7 @@ int luaopen_%s(lua_State *L) let lexbuf = L.from_channel (open_in file) in let l = (startchunk cLine file lexbuf) in if Sys.argv.(3) = "-o" then - let ob = open_out_gen [ Open_trunc ; Open_wronly; Open_creat ] 0444 Sys.argv.(4) in + let ob = open_out_gen [ Open_trunc ; Open_wronly; Open_creat ] 0o444 Sys.argv.(4) in match Sys.argv.(1) with | "-h" -> warn ob; do_h ob l; close_out ob | "-c" -> warn ob; do_c ob l; close_out ob