delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/07/15:43:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
MIME-Version: 1.0
Subject: RE: Obscene content in cygwin file.
Date: Fri, 7 Jan 2005 15:42:58 -0500
Message-ID: <94BF3137C62D3E4CAED7E97F876585F04C2B34@pauex2ku08.agere.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Williams, Gerald S \(Jerry\)" <gsw AT agere DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 07 Jan 2005 20:42:58.0584 (UTC) FILETIME=[78E9D180:01C4F4F9]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j07KhKDY029248

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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019