* gdb.base/bigcore.c (main): Add missing mode argument in open
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 27 Mar 2005 00:18:55 +0000 (00:18 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 27 Mar 2005 00:18:55 +0000 (00:18 +0000)
call.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/bigcore.c

index 55318f802c04878bfe32458943eb8f1dd9a1f927..9d3f4690423d2cc4269f386c0e2290e53064bc07 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-27  Andreas Schwab  <schwab@suse.de>
+
+       * gdb.base/bigcore.c (main): Add missing mode argument in open
+       call.
+
 2005-03-25  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * lib/mi-support.exp (mi_gdb_load): Use /tmp for gdbserver
index 9215b5af7337f5349f74387ff5f0d677eca64ac6..5d0b4dbcdd3ba3d6814b98ba2ff32e6bcc036844 100644 (file)
@@ -178,7 +178,8 @@ main ()
     int fd;
     large_off_t tmp;
     unlink ("bigcore.corefile");
-    fd = open ("bigcore.corefile", O_RDWR | O_CREAT | O_TRUNC | O_LARGEFILE);
+    fd = open ("bigcore.corefile", O_RDWR | O_CREAT | O_TRUNC | O_LARGEFILE,
+              0666);
     for (tmp = 1; tmp > 0; tmp <<= 1)
       {
        if (large_lseek (fd, tmp, SEEK_SET) > 0)