bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils 5.3.0: cp --parents broken


From: Eric Blake
Subject: Re: coreutils 5.3.0: cp --parents broken
Date: Tue, 25 Jan 2005 06:10:45 -0700
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jim Meyering on 1/25/2005 5:31 AM:
>       * path-concat.c: Don't include assert.h.
>       (path_concat): Remove assertion that would have triggered
>       for ABASE starting with more than one slash.
>       Reported by Andreas Schwab.
> 
> Index: path-concat.c
> -   concatenation.
> +   concatenation.  However, if ABASE begins with more than one slash,
> +   set *BASE_IN_RESULT to point to the sole corresponding slash that
> +   is copied into the result buffer.

Collapsing //file/name to /file/name violates POSIX (some systems use that
notation for remote machine shared drive access).  XBD 3.2 defines
absolute path as "A pathname beginning with a single or more than two
slashes", and XBD 4.11 agrees, so you are only allowed to collapse 3 or
more leading slashes.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB9kVV84KuGfSFAYARAji9AKDLesm9Z2W/GsUVDiLN3o8ByGmXBQCghxUe
58QaeshhPcay8SfXWqR2rls=
=ygbP
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]