[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: File archivers and special DOS/Windows device names
From: |
3APA3A |
Subject: |
Re[2]: File archivers and special DOS/Windows device names |
Date: |
Thu, 5 Jul 2001 14:19:28 +0400 |
Hello Eli,
OK. I'll contact Cygwin developers instead.
--Thursday, July 05, 2001, 2:14:38 PM, you wrote to address@hidden:
EZ> On Thu, 5 Jul 2001, 3APA3A wrote:
>> If archive contains file with special name (such as prn, lpt1, com1,
>> con, etc) it will be extracted to this device instead of file. Tested
>> with pkzipc, WinRAR, rar, WinZip, tar (cygwin port under windows). In
>> case of WinZip and tar file will be extracted silently, in other cases
>> overwrite confirmation required.
EZ> I cannot speak for WinZip, pkzip, and other programs, but as for GNU Tar,
EZ> what you mention is a bug in the ported Cygwin executable. Try the DJGPP
EZ> port of Tar, and you will see that it handles such file names gracefully:
EZ> ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/tar112ab.zip
EZ> Also, `prn' and `lpt1' are just a sample of the special names. Any
EZ> device driver which can be reached by opening a special file name will
EZ> cause such problems; thus the list of the offending names cannot be
EZ> known in advance, since additional device drivers can be installed on
EZ> the target system.
EZ> In addition, the file-name extension is ignored when the basename
EZ> matches. So `aux.lst', `prn.c', `con.foo', and an infinite number of
EZ> other similar names--all of them are prone to this problem. Some of the
EZ> devices will actually wedge the DOS box if you try to extract a file by
EZ> that name; kids, don't try that at home!
--
~/3APA3A
Итак, я буду краток. (Твен)