diff options
author | jperkin <jperkin@pkgsrc.org> | 2020-09-23 20:12:50 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2020-09-23 20:12:50 +0000 |
commit | 4a702a6b6be1b4860fe2e02b0f4174a765c8320e (patch) | |
tree | 3f52a42798cc58d612132cbe3c240e1aaf659cd7 /sysutils/coreutils/patches | |
parent | 8d509e6e78a06a5a12c64d078a2e1da210206a3b (diff) | |
download | pkgsrc-4a702a6b6be1b4860fe2e02b0f4174a765c8320e.tar.gz |
coreutils: Backport SunOS "ln <x> ." fix.
Full update to latest release can come after the freeze. Bump
PKGREVISION.
Diffstat (limited to 'sysutils/coreutils/patches')
-rw-r--r-- | sysutils/coreutils/patches/patch-src_ln.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sysutils/coreutils/patches/patch-src_ln.c b/sysutils/coreutils/patches/patch-src_ln.c new file mode 100644 index 00000000000..9b7534888f9 --- /dev/null +++ b/sysutils/coreutils/patches/patch-src_ln.c @@ -0,0 +1,15 @@ +$NetBSD: patch-src_ln.c,v 1.1 2020/09/23 20:12:50 jperkin Exp $ + +Backport https://github.com/coreutils/coreutils/commit/3e0dff3925b5e521cae468087950e85b60002d1c + +--- src/ln.c.orig 2019-01-05 10:36:22.000000000 +0000 ++++ src/ln.c +@@ -603,7 +603,7 @@ main (int argc, char **argv) + { + if (n_files == 2 && !target_directory) + link_errno = atomic_link (file[0], AT_FDCWD, file[1]); +- if (link_errno < 0 || link_errno == EEXIST || link_errno == ENOTDIR) ++ if (link_errno < 0 || link_errno == EEXIST || link_errno == ENOTDIR || link_errno == EINVAL) + { + char const *d + = target_directory ? target_directory : file[n_files - 1]; |