🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #370

A serious bug in unix2dos/dos2unix

#370
From: Haiying ZHANG
Date: Sat, 12 Dec 1992 22:41
21 lines
1345 bytes
   I came across this bug a while ago. This has to do with using wild
card in file names with unix2dos/dos2unix.

   If you use a wild card in the file name, be it a single * or a ?
embedded in a pattern, these two handy utilities will wipe out your
entire current directory with the exception of the first file. It will
set all the rest of the file to size 0. 

   Although the man page does mention anything about wild card in
filename making one believe that it is not supported, it should not in
any case cause serious damaging to your files. While I am at it, these
two programs look like a recompile of its DOS version. It should have
provided more - options such as -Rfp etc. as in cp. 

   I hope that somebody could get hold of this and put some action into
it. For such a widely used simple utility to have these serious bug and
disfunctions is really a shame. 


					Haiying
Technical Details
Message-ID: <1992Dec12.224109.15621@cs.mcgill.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!charnel!sifon!homer.cs.mcgill.ca!haiying

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!charnel!sifon!homer.cs.mcgill.ca!haiying
From: haiying@cs.mcgill.ca (Haiying ZHANG)
Newsgroups: comp.bugs.4bsd,comp.bugs.sys5,comp.bugs.misc,comp.sources.bugs
Subject: A serious bug in unix2dos/dos2unix
Message-ID: <1992Dec12.224109.15621@cs.mcgill.ca>
Date: 12 Dec 92 22:41:09 GMT
Sender: news@cs.mcgill.ca (Netnews Administrator)
Organization: SOCS - McGill University, Montreal, Canada
Lines: 21