maint: avoid new warning about deprecated security_context_t

* sed/execute.c (open_next_file): Use char * in place of
deprecated security_context_t.
This commit is contained in:
Jim Meyering committed 2021-08-01 20:30:42 -07:00
1 parent 3f469c20da
commit 9cfcd06173
1 file changed
+2 -2
+2 -2
View File
@@ -572,7 +572,7 @@ open_next_file (const char *name, struct input *input)
{
int input_fd;
char *tmpdir, *p;
security_context_t old_fscreatecon;
char *old_fscreatecon;
int reset_fscreatecon = 0;
memset (&old_fscreatecon, 0, sizeof (old_fscreatecon));
@@ -593,7 +593,7 @@ open_next_file (const char *name, struct input *input)
if (is_selinux_enabled () > 0)
{
security_context_t con;
char *con;
if (lgetfilecon (input->in_file_name, &con) != -1)
{
/* Save and restore the old context for the sake of w and W