]> granicus.if.org Git - cronie/commitdiff
Close leaking file descriptor
authorMarcela Mašláňová <mmaslano@redhat.com>
Mon, 23 Aug 2010 13:32:13 +0000 (15:32 +0200)
committerMarcela Mašláňová <mmaslano@redhat.com>
Mon, 23 Aug 2010 13:32:13 +0000 (15:32 +0200)
anacron was leaking fd, which caused denial of jobs by selinux.

anacron/main.c

index f5291789a58f198192309de0ee252a9a841ba8fe..2fd3ed5f377ce4a6ab1ec8bed70250d67eee344e 100644 (file)
@@ -493,6 +493,7 @@ main(int argc, char *argv[])
 
     record_start_time();
     read_tab(cwd);
+    close(cwd);
     arrange_jobs();
 
     if (testing_only)