diff -rc cpm-0.23beta/security.c cpm-0.23beta-patched/security.c *** cpm-0.23beta/security.c 2009-11-13 02:51:04.000000000 +0200 --- cpm-0.23beta-patched/security.c 2009-11-11 13:08:48.000000000 +0200 *************** *** 495,501 **** /* check that stderr, stdin and stdout are opened */ /* NOTE: no file must be opened before this test! */ /* Flawfinder: ignore */ ! canary = open("/dev/null", O_CREAT); if ((canary >= 0) && (canary <= 2)) { fprintf(stderr, "%s\n", --- 495,501 ---- /* check that stderr, stdin and stdout are opened */ /* NOTE: no file must be opened before this test! */ /* Flawfinder: ignore */ ! canary = open("/dev/null", O_CREAT, 0777); if ((canary >= 0) && (canary <= 2)) { fprintf(stderr, "%s\n",