mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
* src/copy.c (copy_reg): Initialize local "con", before calling
getfscreatecon, in case that function (or its inline stub) does not set it.
This commit is contained in:
1 parent
a3b65a63a0
commit
abdf924333
2 files changed
+7
-1
No files matched your search
@@ -1,3 +1,9 @@
|
||||
2007-04-02 Jim Meyering <jim@meyering.net>
|
||||
|
||||
* src/copy.c (copy_reg): Initialize local "con", before calling
|
||||
getfscreatecon, in case that function (or its inline stub) does
|
||||
not set it.
|
||||
|
||||
2007-04-01 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* src/ls.c (print_horizontal): Fix bug reported by Mike Frysinger:
|
||||
|
||||
+1
-1
@@ -306,7 +306,7 @@ copy_reg (char const *src_name, char const *dst_name,
|
||||
that is used when the destination file doesn't already exist. */
|
||||
if (x->preserve_security_context && 0 <= dest_desc)
|
||||
{
|
||||
security_context_t con;
|
||||
security_context_t con = NULL;
|
||||
if (getfscreatecon (&con) < 0)
|
||||
{
|
||||
error (0, errno, _("failed to get file system create context"));
|
||||
|
||||
Reference in new issue
Block a user