Skip to contentSkip to conversation

Resend: make restorecon print status messages to stdout

policycoreutils Ivan Gyurdiev 2 participants 2 messages Jul 26, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw
restorecon/restorecon.c +2 -2
diff -p -aru policycoreutils.work/restorecon/restorecon.c policycoreutils-restorecon-stdout/restorecon/restorecon.c
@@ -211,11 +211,11 @@ int restore(char *filename) {
       } else 	
 	      if (verbose && 
 		  (verbose > 1 || !user_only_changed))
-		      fprintf(stderr,"%s reset %s context %s->%s\n",
+		      printf("%s reset %s context %s->%s\n",
 			      progname, filename, (retcontext >= 0 ? prev_context : ""), scontext);
     }
     if (verbose > 1 && customizable>0) {
-	    fprintf(stderr,"%s: %s not reset customized by admin to %s\n",
+	    printf("%s: %s not reset customized by admin to %s\n",
 		      progname, filename, prev_context);
     }
 
#1 lore raw

Merged.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.