Update to lastpass-cli-1.3.1.

This update fixes an issue with intermediate certificates resulting in
a fatal error (https://github.com/lastpass/lastpass-cli/issues/409).
Taken a patch from upstream to fix an issue resulting in a segmentation
fault (https://github.com/lastpass/lastpass-cli/pull/411)

While here change MAINTAINER mail address.

OK sthen@
This commit is contained in:
bket 2018-05-24 16:04:35 +00:00
parent 4c4cb42260
commit 7112ed5280
3 changed files with 21 additions and 5 deletions

View File

@ -1,15 +1,15 @@
# $OpenBSD: Makefile,v 1.14 2018/03/16 17:15:46 bket Exp $
# $OpenBSD: Makefile,v 1.15 2018/05/24 16:04:35 bket Exp $
COMMENT = LastPass command line interface tool
V = 1.3.0
V = 1.3.1
DISTNAME = lastpass-cli-${V}
CATEGORIES = security
HOMEPAGE = https://github.com/lastpass/lastpass-cli
MAINTAINER = Bjorn Ketelaars <bjorn.ketelaars@hydroxide.nl>
MAINTAINER = Bjorn Ketelaars <bket@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes

View File

@ -1,2 +1,2 @@
SHA256 (lastpass-cli-1.3.0.tar.gz) = u8/Wc9ZoKH53Pu9E2mX70vKS2qITo5Uo8xA3xSjbz+Q=
SIZE (lastpass-cli-1.3.0.tar.gz) = 113969
SHA256 (lastpass-cli-1.3.1.tar.gz) = JdyaDJmhDucLWzmR1SVEjCXzEsxp+gIW16xwxK44Sxs=
SIZE (lastpass-cli-1.3.1.tar.gz) = 114843

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-config_c,v 1.1 2018/05/24 16:04:35 bket Exp $
Fix segfault. Taken from https://github.com/lastpass/lastpass-cli/pull/411
Index: config.c
--- config.c.orig
+++ config.c
@@ -175,7 +175,7 @@ enum config_type config_path_type(const char *name)
}
/* lock files are runtime */
- if (strlen(name) >= 5 && !strcmp(name-5, ".lock")) {
+ if (strlen(name) >= 5 && !strcmp(name + strlen(name) - 5, ".lock")) {
return CONFIG_RUNTIME;
}