# | Line 53 | Line 53 | geomBSDF(const SDData *bsp) | |
---|---|---|
53 | char command[SDnameLn+64]; | |
54 | int fd; | |
55 | /* write MGF to temp file */ | |
56 | < | fd = open(mktemp(strcpy(tmpfile,TEMPLATE)), O_WRONLY|O_CREAT|O_EXCL); |
56 | > | fd = open(mktemp(strcpy(tmpfile,TEMPLATE)), O_WRONLY|O_CREAT|O_EXCL, 0600); |
57 | if (fd < 0) { | |
58 | fprintf(stderr, "Cannot open temp file '%s'\n", tmpfile); | |
59 | return(0); | |
60 | } | |
61 | < | write(fd, bsp->mgf, strlen(bsp->mgf)); |
61 | > | (void)write(fd, bsp->mgf, strlen(bsp->mgf)); |
62 | close(fd); | |
63 | /* set up command */ | |
64 | if (do_instance) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |