bug-coreutils
[Top][All Lists]
Advanced

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

Re: rmdir -p can't handle trailing slashes


From: Jim Meyering
Subject: Re: rmdir -p can't handle trailing slashes
Date: Fri Sep 20 15:54:27 2002
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

Hi Andreas!

Thank you!
I've just applied your patch and added a test.
Both will be in the upcoming coreutils-4.5.2 release.
(btw, the bug-coreutils mailing list works, now)

Andreas Schwab <address@hidden> wrote:
> $ mkdir -p a/b/c/
> $ rmdir -p a/b/c/
> rmdir: `a/b/c': No such file or directory
>
> Andreas.
>
> 2002-09-06  Andreas Schwab  <address@hidden>
>
>       * src/rmdir.c (remove_parents): Strip trailing slashes.
>
> --- coreutils-4.5.1/src/rmdir.c
> +++ coreutils-4.5.1/src/rmdir.c
> @@ -98,6 +98,7 @@
>    char *slash;
>    int fail = 0;
>  
> +  strip_trailing_slashes (path);
>    while (1)
>      {
>        slash = strrchr (path, '/');
>
> -- 
> Andreas Schwab, SuSE Labs, address@hidden
> SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
> Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."




reply via email to

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