diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2016-03-26 20:21:37 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2016-03-26 20:21:37 +0000 |
commit | 3c3b5a40be39df178cc79092c3786a3ec3fbe7e8 (patch) | |
tree | 242af2209c9c2342a9049b3f1733e3c571547d94 /editors/nano | |
parent | 22c14aa5765c6c726a889e3cfdab94ddf3edab08 (diff) | |
download | pkgsrc-3c3b5a40be39df178cc79092c3786a3ec3fbe7e8.tar.gz |
Fix opening files in directories other than the current one (no, really).
From coypu in PR pkg/51010. Bump PKGREVISION.
Diffstat (limited to 'editors/nano')
-rw-r--r-- | editors/nano/Makefile | 3 | ||||
-rw-r--r-- | editors/nano/distinfo | 3 | ||||
-rw-r--r-- | editors/nano/patches/patch-src_files.c | 13 |
3 files changed, 17 insertions, 2 deletions
diff --git a/editors/nano/Makefile b/editors/nano/Makefile index 900bd843c5c..e05fdf6b144 100644 --- a/editors/nano/Makefile +++ b/editors/nano/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.53 2016/03/07 18:34:15 wiedi Exp $ +# $NetBSD: Makefile,v 1.54 2016/03/26 20:21:37 bsiegert Exp $ DISTNAME= nano-2.5.3 +PKGREVISION= 1 CATEGORIES= editors MASTER_SITES= http://www.nano-editor.org/dist/v2.5/ diff --git a/editors/nano/distinfo b/editors/nano/distinfo index b171ad9944a..1f6dae661df 100644 --- a/editors/nano/distinfo +++ b/editors/nano/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.26 2016/03/07 18:34:15 wiedi Exp $ +$NetBSD: distinfo,v 1.27 2016/03/26 20:21:37 bsiegert Exp $ SHA1 (nano-2.5.3.tar.gz) = 5ab42a39283a17f61ac5f044d9eae92e41ea8114 RMD160 (nano-2.5.3.tar.gz) = 7f5d2bf718408d3a3c43e066ef66ba585b5e53ab SHA512 (nano-2.5.3.tar.gz) = 1d859f0bd88b9d907cfcaa84edc212bcaea4335c203922eb5b7378c2b45d88dffe1f3e4cb499a824d33781485834ef564997c58cf1fd92610d08f6ce8dcb67d5 Size (nano-2.5.3.tar.gz) = 1967760 bytes SHA1 (patch-configure) = 3a63b02a39000d5a15087739648b82e999d14f56 +SHA1 (patch-src_files.c) = 3416d3437743794aa909ce62b545a02576277060 diff --git a/editors/nano/patches/patch-src_files.c b/editors/nano/patches/patch-src_files.c new file mode 100644 index 00000000000..79587bd0838 --- /dev/null +++ b/editors/nano/patches/patch-src_files.c @@ -0,0 +1,13 @@ +$NetBSD: patch-src_files.c,v 1.1 2016/03/26 20:21:37 bsiegert Exp $ + +--- src/files.c.orig 2016-02-25 20:47:10.000000000 +0000 ++++ src/files.c +@@ -43,7 +43,7 @@ bool has_valid_path(const char *filename + if (strrchr(filename, '/') == NULL) + parentdir = mallocstrcpy(NULL, "."); + else +- parentdir = dirname(mallocstrcpy(NULL, filename)); ++ parentdir = mallocstrcpy(NULL, dirname(filename)); + + if (stat(parentdir, &parentinfo) == -1) { + if (errno == ENOENT) |