delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/07/30/07:11:52

From: Kbwms AT aol DOT com
Message-ID: <1e9.dfb8f29.2c5901db@aol.com>
Date: Wed, 30 Jul 2003 07:11:23 EDT
Subject: Re: mv bug (filutils? library?)
To: djgpp-workers AT delorie DOT com
MIME-Version: 1.0
X-Mailer: 8.0 for Windows sub 6011
Reply-To: djgpp-workers AT delorie DOT com

--part1_1e9.dfb8f29.2c5901db_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

In a message dated 7/30/2003 4:09:55 AM Eastern Standard Time, 
AndrewCottrell AT swiftdsl DOT com DOT au writes:

> >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.
> 
> The solution is to make sure you are using the latest file utils and not 4.0
> or earlier. From memory last year, as such there may be some mistakes in my
> response below:-
> 

The problem exists on my system (Windows XP) with Fileutils version 4.1.

--part1_1e9.dfb8f29.2c5901db_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<HTML><FONT FACE=3Darial,helvetica><FONT  SIZE=3D3 FAMILY=3D"SERIF" FACE=3D"=
Georgia" LANG=3D"0">In a message dated 7/30/2003 4:09:55 AM Eastern Standard=
 Time, AndrewCottrell AT swiftdsl DOT com DOT au writes:<BR>
<BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"></FONT><FONT  COLOR=3D"#000000"=
 style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=3D"A=
rial" LANG=3D"0">&gt;Noticed by someone else and passed onto me:<BR>
&gt;<BR>
&gt;Create a directory with long name:<BR>
&gt;<BR>
&gt;mkdir thisisalong<BR>
&gt;cd thisisalong<BR>
&gt;mkdir junk<BR>
&gt;mv junk junk<BR>
&gt;<BR>
&gt;This will create junk\junk\... nesting until it fails.<BR>
&gt;<BR>
&gt;If you do the test under a short name it seems to work <BR>
&gt;correctly (gives a message about cannot move 'junk' to a <BR>
&gt;subdirectory of itself).<BR>
&gt;<BR>
&gt;I have verified this behavior under Win98 and Windows 2000 <BR>
&gt;using an older copy of the filutils - but I am told it is <BR>
&gt;seen on newer versions as <BR>
&gt;well.<BR>
&gt;<BR>
&gt;A quick look at copy.c source seems that 'copy_into_self' <BR>
&gt;flag doesn't work properly if path contains long names.<BR>
<BR>
The solution is to make sure you are using the latest file utils and not 4.0=
<BR>
or earlier. From memory last year, as such there may be some mistakes in my<=
BR>
response below:-<BR>
</BLOCKQUOTE><BR>
</FONT><FONT  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3=
 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><BR>
The problem exists on my system (Windows XP) with Fileutils version 4.1.</FO=
NT></HTML>

--part1_1e9.dfb8f29.2c5901db_boundary--

- Raw text -


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