policycoreutils/policycoreutils-rhat.patch

12 lines
528 B
Diff
Raw Normal View History

--- 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);