[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] ln: --no-target-directory implies --no-dereference
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2019-10-08 12:08:43
Message-ID: CAK1hOcN_3YUhDnP98sJ65k-nQ55Bwnm1QssYGTxfnDaOQyc8xg () mail ! gmail ! com
[Download RAW message or body]
Applied, thanks
On Mon, Oct 7, 2019 at 6:34 PM Kaarle Ritvanen
<kaarle.ritvanen@datakunkku.fi> wrote:
>
> as in GNU coreutils
> ---
> coreutils/ln.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/coreutils/ln.c b/coreutils/ln.c
> index ea2d10eab..f2a1941b9 100644
> --- a/coreutils/ln.c
> +++ b/coreutils/ln.c
> @@ -85,10 +85,7 @@ int ln_main(int argc, char **argv)
> src_name = NULL;
> src = last;
>
> - if (is_directory(src,
> - (opts & LN_NODEREFERENCE) ^ LN_NODEREFERENCE
> - )
> - ) {
> + if (is_directory(src, !(opts & (LN_NODEREFERENCE|LN_LINKFILE)))) {
> if (opts & LN_LINKFILE) {
> bb_error_msg_and_die("'%s' is a directory", src);
> }
> --
> 2.20.1
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic