content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: mv bug (filutils? library?) Date: Wed, 30 Jul 2003 08:57:35 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: mv bug (filutils? library?) Thread-Index: AcNWC9GOp0IZig3FQRmBSNFpMC9YPQAWxMaA From: =?iso-8859-2?Q?Wojciech_Ga=B3=B1zka?= To: X-OriginalArrivalTime: 30 Jul 2003 06:57:35.0741 (UTC) FILETIME=[DB4D6AD0:01C35667] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h6U6vph16595 Reply-To: djgpp-workers AT delorie DOT com Undex W2K mv --help which prints mv (GNU fileutils) 3.16 It also creates junk\junk until it fails producing C:\thisisalong\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk\junk -----Original Message----- From: Charles Sandmann [mailto:sandmann AT clio DOT rice DOT edu] Sent: Tuesday, July 29, 2003 9:36 PM To: DJGPP developers Subject: mv bug (filutils? library?) Noticed by someone else and passed onto me: Create a directory with long name: mkdir thisisalong cd thisisalong mkdir junk mv junk junk This will create junk\junk\... nesting until it fails. If you do the test under a short name it seems to work correctly (gives a message about cannot move 'junk' to a subdirectory of itself). I have verified this behavior under Win98 and Windows 2000 using an older copy of the filutils - but I am told it is seen on newer versions as well. A quick look at copy.c source seems that 'copy_into_self' flag doesn't work properly if path contains long names.