* jartool.c: Use mode 0666 when opening new file.
authorTom Tromey <tromey@redhat.com>
Sun, 20 Oct 2002 23:30:24 +0000 (23:30 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sun, 20 Oct 2002 23:30:24 +0000 (23:30 +0000)
From-SVN: r58341

fastjar/ChangeLog
fastjar/jartool.c

index 1acc353638f29d34d99ade0dd8d6fa82db0f403e..1c05ac72d9ba5ada8f53699bb40d4818722ec436 100644 (file)
@@ -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.
index bb3440353a035f6148a102f0f77d12560e599f57..3048ee9c213afc16d0f93948a9658b6517bfaca5 100644 (file)
@@ -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);