File name too long
jw schultz
jw at pegasys.ws
Tue Mar 11 10:46:25 EST 2003
Please reply to the list.
On Mon, Mar 10, 2003 at 05:05:40PM +0100, Luc Santeramo wrote:
> A 03:53 10/03/2003 -0800, vous avez écrit :
> >On Mon, Mar 10, 2003 at 11:08:57AM +0100, Luc Santeramo wrote:
> >> Hi,
> >>
> >> I've got a File name too long problem using rsync-2.5.6 or rsync
> >2.5.5-0.1
> >> (debian)
> >>
> >> I had a look to the mailing list archive and to the todo file and all
> >I've
> >> seen was that the problem only appears on old special systems.
> >> I'm using debian 2.2.20. (is it too old?)
> >
> >No it isn't too old. What the person was probably referring
> >to was old filesystems that limited filename size to 8.3 or
> >to 14 characters.
> >
> >What you have done is hit a file created by something insane
>
> well, it is not really insane
> we need to "wget" a lot of web pages
> and some of them have long URLs... very long URLs
> we can't tell webmasters to change their naming policies even if it is bad.
Makes one wonder what it will do when it gets a URL that
won't fit.
>
> >where the filename is 252 characters long. Adding the
> >prepended . and the appended .XXXXXX made it 260 characters
> >long and the filesystem doesn't support that long a name.
> >
> >I have a recollection of someone suggesting a patch to
> >so our use of mkstemp didn't increase the length of long
> >filenames but i don't recall anything coming of that.
> >
> >The easiest solution would be for the file creator to stop
> >making such long file names. If you cannot do that i have
> >attached a patch against CVS with a quick hack that avoids
> >the problem as long as you don't use --temp-dir.
>
> ok
> thanks a lot, I'll try this patch as soon as possible
Don't. I think it messes up the filenames if they actually
are that long. The patch from the debian developer should
be safer.
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync
mailing list