setfiles - patch
Quoted 2 lines · Russell Coker
I've attached a little patch for setfiles which allows "-" to be specified instead of a file system name to make it read file names from stdin.
Just found a minor bug in my code. I had to add a check such as the following after the strtok() because strtok doesn't do anything if the only character in the string is '\n'!if(buf[0] != '\n')
This is because programs like dpkg like to append an empty line after the list of files, and adding a "grep ." in the pipeline is too annoying.
Signature · 9 lines
If you send email to me or to a mailing list that I use which has >4 lines of legalistic junk at the end then you are specifically authorizing me to do whatever I wish with the message and all other messages from your domain, by posting the message you agree that your long legalistic sig is void. -- You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.