delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/07/29/15:40:53

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10307291936.AA13490@clio.rice.edu>
Subject: mv bug (filutils? library?)
To: djgpp-workers AT delorie DOT com (DJGPP developers)
Date: Tue, 29 Jul 2003 14:36:07 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

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.

- Raw text -


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