diff options
author | Tom Tromey <tromey@redhat.com> | 2002-10-20 23:30:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-10-20 23:30:24 +0000 |
commit | 248cfd1c86d59d27e9ca3799d749aee08e1b6d86 (patch) | |
tree | ad020a56df78e33b8d03b58cdc97018be16140c3 /fastjar | |
parent | c590b62588c84c4f0b7770a9e5c6f3216a87dce7 (diff) | |
download | gcc-248cfd1c86d59d27e9ca3799d749aee08e1b6d86.zip gcc-248cfd1c86d59d27e9ca3799d749aee08e1b6d86.tar.gz gcc-248cfd1c86d59d27e9ca3799d749aee08e1b6d86.tar.bz2 |
* jartool.c: Use mode 0666 when opening new file.
From-SVN: r58341
Diffstat (limited to 'fastjar')
-rw-r--r-- | fastjar/ChangeLog | 4 | ||||
-rw-r--r-- | fastjar/jartool.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/fastjar/ChangeLog b/fastjar/ChangeLog index 1acc353..1c05ac7 100644 --- a/fastjar/ChangeLog +++ b/fastjar/ChangeLog @@ -1,3 +1,7 @@ +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. diff --git a/fastjar/jartool.c b/fastjar/jartool.c index bb34403..3048ee9 100644 --- a/fastjar/jartool.c +++ b/fastjar/jartool.c @@ -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); |