setfiles will only put out a "*" if > 1000 files are fixed.
setfiles was always putting out a \n, even when not many files were being fixed. yum transactions were being desturbed by this.
setfiles/setfiles.c +5 -3
@@ -29,6 +29,8 @@static int mass_relabel;static int mass_relabel_errs; +#define STAR_COUNT 1000 +static FILE *outfile =NULL ;static int force =0 ;#define STAT_BLOCK_SIZE 1
@@ -444,11 +446,11 @@if (progress) { count++; -if (count %80000 ==0 ) { +if (count % (80 *STAR_COUNT ) ==0 ) {fprintf (stdout,"\n" );fflush (stdout); } -if (count %1000 ==0 ) { +if (count %STAR_COUNT ==0 ) {fprintf (stdout,"*" );fflush (stdout); }
@@ -1017,7 +1019,7 @@free (excludeArray[i].directory); } -if (progress) +if (progress && count >=STAR_COUNT )printf ("\n" );exit (errors); }
Quoted 2 lines · Daniel J Walsh
setfiles was always putting out a \n, even when not many files were being fixed. yum transactions were being desturbed by this.
Merged in policycoreutils 2.0.64
--
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.