Skip to contentSkip to conversation

no new-line in setfiles/restorecon patch

PATCH Russell Coker 2 participants 2 messages Sep 1, 2011 SELinux security module

lore
Share & tools
lore
#0 lore raw

New-lines just look ugly when the screen width isn't 80 columns. Knowing exactly how much progress we have made in increments of 80,000 isn't that useful IMHO.

As an aside, I've been considering patching it to display "12345" instead of "*****" as the progress. If you think this is a good idea then let me know and I'll submit a patch to do it.

Signature · 2 lines
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/
setfiles/restore.c +0 -4
@@ -114,10 +114,6 @@
 
 	if (r_opts->progress) {
 		r_opts->count++;
-		if (r_opts->count % (80 * STAR_COUNT) == 0) {
-			fprintf(stdout, "\n");
-			fflush(stdout);
-		}
 		if (r_opts->count % STAR_COUNT == 0) {
 			fprintf(stdout, "*");
 			fflush(stdout);
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Russell Coker

New-lines just look ugly when the screen width isn't 80 columns. Knowing exactly how much progress we have made in increments of 80,000 isn't that useful IMHO.

As an aside, I've been considering patching it to display "12345" instead of "*****" as the progress. If you think this is a good idea then let me know and I'll submit a patch to do it.

This looks good to me.

Ack.

Not sure the 123 would be useful.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5fjE0ACgkQrlYvE4MpobOL4ACg3MA6J4ZJxj0jmAdPnRueed+5 +2gAoMK+qq31kl8ZKKGXyswAk6FqJERO
=AfE3
-----END PGP SIGNATURE-----

--
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.