]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
added comments about - seemingly - unchecked open() calls
authormortenp <none@none>
Mon, 30 Aug 2004 15:31:16 +0000 (01:31 +1000)
committermortenp <none@none>
Mon, 30 Aug 2004 15:31:16 +0000 (01:31 +1000)
src/mlmmj-process.c

index 3249a5cf4dc0407199e01a1d6313273384ee65af..949c9b70003f6ff33c37ba0fef51d754a018c7f5 100644 (file)
@@ -442,10 +442,13 @@ int main(int argc, char **argv)
                exit(EXIT_FAILURE);
        }
 
+    /* hdrfd is checked in do_all_the_voodo_here(), because the
+     * customheaders file might not exist */
        headerfilename = concatstr(2, listdir, "/control/customheaders");
        hdrfd = open(headerfilename, O_RDONLY);
        myfree(headerfilename);
        
+    /* footfd is checked in do_all_the_voodo_here(), see above */
        footerfilename = concatstr(2, listdir, "/control/footer");
        footfd = open(footerfilename, O_RDONLY);
        myfree(footerfilename);