make generated tools RO for real
authorPierre Habouzit <madcoder@debian.org>
Sat, 19 May 2007 15:29:46 +0000 (17:29 +0200)
committerPierre Habouzit <madcoder@debian.org>
Sat, 19 May 2007 15:29:46 +0000 (17:29 +0200)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
tools/cpkg2c.mll

index cefc389..a3a3782 100644 (file)
@@ -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