policycoreutils/policycoreutils-rhat.patch
Daniel J Walsh a52deb4d72 * Mon Jan 10 2005 Dan Walsh <dwalsh@redhat.com> 1.20.1-2
- Fix restorecon segfault
2005-01-10 18:18:41 +00:00

12 lines
528 B
Diff

--- policycoreutils-1.20.1/restorecon/restorecon.c.rhat 2005-01-07 09:43:00.000000000 -0500
+++ policycoreutils-1.20.1/restorecon/restorecon.c 2005-01-10 13:18:06.742707066 -0500
@@ -146,7 +146,7 @@
if (verbose > 1 ||
!only_changed_user(scontext, prev_context))
fprintf(stderr,"%s reset context %s:%s->%s\n",
- progname, filename, prev_context, scontext);
+ progname, filename, (retcontext >= 0 ? prev_context : ""), scontext);
}
if (retcontext >= 0)
freecon(prev_context);