This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Obscene content in cygwin file.


OK, anybody still reading this thread probably already knows how to
do this, but just in case, here's what you need to do to clean up
your fortune files (other than just deleting them):

First, make sure you have the tools you need and double-check that
the "offensive" files are in plaintext:

$ ls /usr/sbin/strfile
/usr/sbin/strfile
$ which tr
/usr/bin/tr
$ cd /usr/share/fortune
$ head -3 fortunes2-o limerick
==> fortunes2-o <==
Would you please have another look at my nose and put in that cocaine
stuff....
                -- Adolf Hitler, quoted by Dr. Giesing in Nuremberg
trial

==> limerick <==
A bad little girl in Madrid,
A most reprehensible kid,
        Told her Tante Louise


Then to properly encode and mark the offensive files as such:

$ cd /usr/share/fortune
$ mv fortunes2-o fortunes2-o.orig
$ mv limerick limerick-o.orig
$ rm fortunes2-o.dat limerick.dat
$ tr A-Za-z N-ZA-Mn-za-m < fortunes2-o.orig > fortunes2-o
$ tr A-Za-z N-ZA-Mn-za-m < limerick-o.orig > limerick-o
$ /usr/sbin/strfile -x fortunes2-o
$ /usr/sbin/strfile -x limerick-o
$ rm fortunes2-o.orig limerick-o.orig


gsw


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]