* src/copy.c (copy_reg): Close dest_desc too, if getfscreatecon
or fsetfilecon fail.
+2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
+
+ Close a file descriptor leak when cp --preserve=context fails.
+ * src/copy.c (copy_reg): Close dest_desc too, if getfscreatecon
+ or fsetfilecon fail.
+
2007-11-28 Jim Meyering <meyering@redhat.com>
* README: Document the known problem with gettext <= 0.17.
if (x->require_preserve_context)
{
return_val = false;
- goto close_src_desc;
+ goto close_src_and_dst_desc;
}
}
{
return_val = false;
freecon (con);
- goto close_src_desc;
+ goto close_src_and_dst_desc;
}
}
freecon(con);