[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file descriptor leak when cp --preserve=context fails
From: |
Jim Meyering |
Subject: |
Re: file descriptor leak when cp --preserve=context fails |
Date: |
Thu, 29 Nov 2007 08:33:59 +0100 |
Paul Eggert <address@hidden> wrote:
> I found this by code inspection. The fix is obvious, though I don't
> have a SELinux platform to test the fix on.
>
> 2007-11-28 Paul Eggert <address@hidden>
>
> Close a file descriptor leak when cp --preserve=context fails.
> * src/copy.c (copy_reg): Close dest_desc too, if getfscreatecon
> or fsetfilecon fail.
Obvious indeed.
Thank you!