Commit 248cfd1c by Tom Tromey Committed by Tom Tromey

* jartool.c: Use mode 0666 when opening new file.

From-SVN: r58341
parent c590b625
2002-10-20 Tom Tromey <tromey@redhat.com>
* jartool.c: Use mode 0666 when opening new file.
2002-10-15 Ranjit Mathew <rmathew@hotmail.com>
* configure, config.h.in: Rebuilt.
......
......@@ -439,8 +439,7 @@ int main(int argc, char **argv){
/* create the jarfile */
if(action == ACTION_CREATE){
if(jarfile){
jarfd = open(jarfile, O_CREAT | O_BINARY | O_WRONLY | O_TRUNC,
S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
jarfd = open(jarfile, O_CREAT | O_BINARY | O_WRONLY | O_TRUNC, 0666);
if(jarfd < 0){
fprintf(stderr, "Error opening %s for writing!\n", jarfile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment