Debian Codegraph @

contrib/iapbs/modules/NAMD/patches/charmrun-20092904.patch

raw
1 --- charmrun.c.orig 2009-04-23 14:46:33.000000000 -0700
2 +++ charmrun.c 2009-04-29 22:09:00.000000000 -0700
3 @@ -1322,7 +1322,7 @@ char *input_scanf_chars(fmt)
4 char *tmp=tmpnam(NULL);/*This was once /tmp/fnord*/
5 #endif
6 unlink(tmp);
7 - fd = open(tmp,O_RDWR | O_CREAT | O_TRUNC);
8 + fd = open(tmp,O_RDWR | O_CREAT | O_TRUNC, 0666 );
9 if (fd<0) {
10 fprintf(stderr,"cannot open temp file /tmp/fnord");
11 exit(1);