Hello community, here is the log from the commit of package lastpass-cli for openSUSE:Factory checked in at 2019-06-01 09:52:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lastpass-cli (Old) and /work/SRC/openSUSE:Factory/.lastpass-cli.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lastpass-cli" Sat Jun 1 09:52:33 2019 rev:9 rq:706300 version:1.3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/lastpass-cli/lastpass-cli.changes 2018-06-19 11:56:01.695041327 +0200 +++ /work/SRC/openSUSE:Factory/.lastpass-cli.new.5148/lastpass-cli.changes 2019-06-01 09:52:35.555260933 +0200 @@ -1,0 +2,24 @@ +Wed May 29 12:53:35 UTC 2019 - Martin Pluskal <[email protected]> + +- Update to version 1.3.3: + * Decrease the time for the cli app to do things (Wesley Schwengle) + * 'blob_load' refactor (Wesley Schwengle) + * Fixed bug where logout requires login (Wesley Schwengle) + * Fix non-default PKG_CONFIG_PATH on macOS (Alyssa Ross) +- Changes for version 1.3.2: + * Don't require using make (Eli Schwartz) + * Disable IPv6 support (Wesley Schwengle) + * Link against Brew Curl on MacOS (Tom Sullivan) + * Autogenerate versions from git (Wesley Schwengle/Eli Schwartz) + * Remove memory leak in config_path_for_type (Tom Sullivan) + * Install bash-completions in PREFIX dir (Wesley Schwengle) + * Include libgen.h for BSD builds (Tom Sullivan) + * Create subdirectories when determining config path (Tom Sullivan) + * Only show basename in usage (William Casarin) + * Fix segmentation fault on BSD while running make test (Björn Ketelaars) + * README.md updates: + + Brew formula installation (Thomas Haggett) + + Ubuntu Xenial dependencies (Nick Timkovich) + + Debian stable/testing and Ubuntu dependencies (Wesley Schwengle) + +------------------------------------------------------------------- Old: ---- lastpass-cli-1.3.1.tar.gz New: ---- lastpass-cli-1.3.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lastpass-cli.spec ++++++ --- /var/tmp/diff_new_pack.N099H2/_old 2019-06-01 09:52:36.579260583 +0200 +++ /var/tmp/diff_new_pack.N099H2/_new 2019-06-01 09:52:36.583260582 +0200 @@ -1,7 +1,7 @@ # # spec file for package lastpass-cli # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,12 +12,12 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: lastpass-cli -Version: 1.3.1 +Version: 1.3.3 Release: 0 Summary: LastPass command line interface tool License: GPL-2.0-only ++++++ lastpass-cli-1.3.1.tar.gz -> lastpass-cli-1.3.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/.gitignore new/lastpass-cli-1.3.3/.gitignore --- old/lastpass-cli-1.3.1/.gitignore 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/.gitignore 2019-04-15 16:15:52.000000000 +0200 @@ -8,6 +8,7 @@ tags build test/.lpass +version.h # IDE /.idea diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/CHANGELOG.md new/lastpass-cli-1.3.3/CHANGELOG.md --- old/lastpass-cli-1.3.1/CHANGELOG.md 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/CHANGELOG.md 2019-04-15 16:15:52.000000000 +0200 @@ -1,3 +1,25 @@ +# Version 1.3.3 + * Decrease the time for the cli app to do things (Eli Schwartz) + * 'blob_load' refactor (Eli Schwartz) + * Fixed bug where logout requires login (Eli Schwartz) + * Fix non-default PKG_CONFIG_PATH on macOS (Alyssa Ross) + +# Version 1.3.2 + * Don't require using make (Eli Schwartz) + * Disable IPv6 support (Wesley Schwengle) + * Link against Brew Curl on MacOS (Tom Sullivan) + * Autogenerate versions from git (Wesley Schwengle/Eli Schwartz) + * Remove memory leak in `config_path_for_type` (Tom Sullivan) + * Install bash-completions in PREFIX dir (Wesley Schwengle) + * Include `libgen.h` for BSD builds (Tom Sullivan) + * Create subdirectories when determining config path (Tom Sullivan) + * Only show basename in usage (William Casarin) + * Fix segmentation fault on BSD while running `make test` (Björn Ketelaars) + * README.md updates: + * Brew formula installation (Thomas Haggett) + * Ubuntu Xenial dependencies (Nick Timkovich) + * Debian stable/testing and Ubuntu dependencies (Wesley Schwengle) + # Version 1.3.1 * Revert "pins: remove GlobalSign R1/R3 pins" from Robert Copeland * Readme update from Wesley Schwengle diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/CMakeLists.txt new/lastpass-cli-1.3.3/CMakeLists.txt --- old/lastpass-cli-1.3.1/CMakeLists.txt 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/CMakeLists.txt 2019-04-15 16:15:52.000000000 +0200 @@ -1,32 +1,45 @@ -set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake > 2.8.4 is required -cmake_minimum_required(VERSION 2.8) +IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} VERSION_LESS 3.1) + set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake > 2.8.4 is required + cmake_minimum_required(VERSION 2.8) +ELSE() + cmake_minimum_required(VERSION 3.1) +ENDIF() project(lpass) - include(GNUInstallDirs) - find_package(PkgConfig REQUIRED) -# pkg_get_variable is not available until CMake >= 3.4.0 -# Debian stable still packages CMake 3.0.2 -function(pkg_check_variable _pkg _name) - string(TOUPPER ${_pkg} _pkg_upper) - string(TOUPPER ${_name} _name_upper) - string(REPLACE "-" "_" _pkg_upper ${_pkg_upper}) - string(REPLACE "-" "_" _name_upper ${_name_upper}) - set(_output_name "${_pkg_upper}_${_name_upper}") - - execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=${_name} ${_pkg} - OUTPUT_VARIABLE _pkg_result - OUTPUT_STRIP_TRAILING_WHITESPACE) +IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} VERSION_LESS 3.4) + # pkg_get_variable is not available until CMake >= 3.4.0 + # Debian oldstable still packages CMake 3.0.2 + function(pkg_get_variable _output_name _pkg _name) + execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=${_name} ${_pkg} + OUTPUT_VARIABLE _pkg_result + OUTPUT_STRIP_TRAILING_WHITESPACE) + + set("${_output_name}" "${_pkg_result}" CACHE STRING "pkg-config variable ${_name} of ${_pkg}") + endfunction() + + pkg_get_variable(BASH_COMPLETION_PREFIX bash-completion prefix) + if(BASH_COMPLETION_PREFIX) + set(BASH_COMPLETION_FOUND TRUE) + endif() + +ELSE() - set("${_output_name}" "${_pkg_result}" CACHE STRING "pkg-config variable ${_name} of ${_pkg}") -endfunction() + include(FindPkgConfig) + pkg_search_module(BASH_COMPLETION bash-completion) + +ENDIF() if((APPLE) AND (NOT DEFINED OPENSSL_ROOT_DIR)) set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl") endif() +if((APPLE)) + set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/curl/lib/pkgconfig") +endif() + find_package(LibXml2 REQUIRED) include_directories(${LIBXML2_INCLUDE_DIR}) @@ -36,11 +49,9 @@ find_package(CURL REQUIRED) include_directories(${CURL_INCLUDE_DIR}) -pkg_check_variable(bash-completion completionsdir) - set(PROJECT_NAME lpass) -file(GLOB PROJECT_HEADERS *.h) +file(GLOB PROJECT_HEADERS *.h version.h) file(GLOB PROJECT_SOURCES *.c) set(PROJECT_DEFINITIONS "_GNU_SOURCE") @@ -50,6 +61,9 @@ set(PROJECT_FLAGS "${PROJECT_FLAGS} -Wno-deprecated-declarations") endif() +execute_process(COMMAND ./LASTPASS-VERSION-GEN + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) + # Main lpass executable add_executable(${PROJECT_NAME} ${PROJECT_HEADERS} ${PROJECT_SOURCES}) set_target_properties(${PROJECT_NAME} PROPERTIES @@ -69,8 +83,18 @@ COMMAND asciidoc -b html5 -a data-uri -a icons -a toc2 -o lpass.1.html ${CMAKE_SOURCE_DIR}/lpass.1.txt) install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin) -if(BASH_COMPLETION_COMPLETIONSDIR) -install(FILES contrib/lpass_bash_completion DESTINATION ${BASH_COMPLETION_COMPLETIONSDIR} RENAME lpass) + +if(BASH_COMPLETION_FOUND) + pkg_get_variable(BASH_COMPLETION_COMPLETIONSDIR bash-completion completionsdir) + + # Fix GH-478 + if(NOT "${BASH_COMPLETION_PREFIX}" STREQUAL "${CMAKE_INSTALL_PREFIX}") + string(REGEX REPLACE "^${BASH_COMPLETION_PREFIX}" "${CMAKE_INSTALL_PREFIX}" COMP_DIR ${BASH_COMPLETION_COMPLETIONSDIR}) + set(BASH_COMPLETION_COMPLETIONSDIR ${COMP_DIR}) + unset(COMP_DIR) + endif() + + install(FILES contrib/lpass_bash_completion DESTINATION ${BASH_COMPLETION_COMPLETIONSDIR} RENAME lpass) endif() # Test lpass executable with mock server, link against test versions first diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/LASTPASS-VERSION-GEN new/lastpass-cli-1.3.3/LASTPASS-VERSION-GEN --- old/lastpass-cli-1.3.1/LASTPASS-VERSION-GEN 1970-01-01 01:00:00.000000000 +0100 +++ new/lastpass-cli-1.3.3/LASTPASS-VERSION-GEN 2019-04-15 16:15:52.000000000 +0200 @@ -0,0 +1,44 @@ +#!/bin/sh + +# This file has been adopted from the git project +# You can find the original at https://github.com/git/git/blob/master/GIT-VERSION-GEN + +LPVF=version.h +DEF_VER=v1.3.3.GIT + +LF=' +' + +# First see if there is a version file (included in release tarballs), +# then try git-describe, then default. +if test -f version +then + VN=$(cat version) || VN="$DEF_VER" +elif test -d ${GIT_DIR:-.git} -o -f .git && + VN=$(git describe --match "v[0-9]*" HEAD 2>/dev/null) && + case "$VN" in + *$LF*) (exit 1) ;; + v[0-9]*) + git update-index -q --refresh + test -z "$(git diff-index --name-only HEAD --)" || + VN="$VN-dirty" ;; + esac +then + VN=$(echo "$VN" | sed -e 's/-/./g'); +else + VN="$DEF_VER" +fi + +VN=$(expr "$VN" : v*'\(.*\)') + +if test -r $LPVF +then + VC=$(sed -ne 's/^#define LASTPASS_CLI_VERSION "\(.*\)"/\1/p' <$LPVF) +else + VC=unset +fi +test "$VN" = "$VC" || { + echo >&2 "LASTPASS_CLI_VERSION =$VN" + echo "#define LASTPASS_CLI_VERSION \"$VN\"" >$LPVF + echo "#define LASTPASS_CLI_USERAGENT \"LastPass-CLI/\" LASTPASS_CLI_VERSION" >>$LPVF +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/README.md new/lastpass-cli-1.3.3/README.md --- old/lastpass-cli-1.3.1/README.md 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/README.md 2019-04-15 16:15:52.000000000 +0200 @@ -19,7 +19,7 @@ ### Installing on Linux #### Arch * A binary package is available from the community repository, use pacman to simple install lastpass-cli. -* Can be build from source with the "lastpass-cli-git" *[Arch User Repository (AUR)](https://aur.archlinux.org/packages.php?O=0&L=0&C=0&K=lastpass-cli). +* Can be build from source with the "lastpass-cli-git" *[Arch User Repository (AUR)](https://aur.archlinux.org/packages.php?O=0&L=0&C=0&K=lastpass-cli). Information about installing packages from the AUR [can be found on the Arch wiki](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages). ``` @@ -54,38 +54,61 @@ #### Debian/Ubuntu + * Install the needed build dependencies, and then follow instructions in the 'Building' section. -* For Debian: +* For Ubuntu 16.04 (xenial) ``` -sudo apt install --no-install-recommends \ +apt-get --no-install-recommends -yqq install \ + bash-completion \ build-essential \ cmake \ libcurl3 \ - libcurl4-openssl-dev \ - libssl-dev \ - libxml2 \ + libcurl3-openssl-dev \ + libssl1.0.0 \ + libssl-dev \ + libxml2 \ libxml2-dev \ - openssl \ - pinentry-curses \ - pkg-config \ + pkg-config \ + ca-certificates \ xclip ``` -* For Ubuntu: +* For Debian (stable/oldstable) and other Ubuntus < 18.04 ``` -sudo apt install --no-install-recommends \ +apt-get --no-install-recommends -yqq install \ + bash-completion \ + build-essential \ cmake \ - libcurl4-openssl-dev \ - libssl-dev \ + libcurl3 \ + libcurl3-openssl-dev \ + libssl1.0 \ + libssl1.0-dev \ libxml2 \ - libxml2-dev \ - openssl \ - pinentry-curses \ + libxml2-dev \ pkg-config \ + ca-certificates \ + xclip +``` + +* For Debian (testing/experimental) and Ubuntu >= 18.04 + +``` +apt-get --no-install-recommends -yqq install \ + bash-completion \ + build-essential \ + cmake \ + libcurl4 \ + libcurl4-openssl-dev \ + libssl-dev \ + libxml2 \ + libxml2-dev \ + libssl1.1 \ + pkg-config \ + ca-certificates \ xclip ``` @@ -113,7 +136,7 @@ * Install the lastpass-cli formula: ``` -brew install lastpass-cli --with-pinentry +brew install lastpass-cli ``` #### With [MacPorts](https://www.macports.org/) @@ -198,5 +221,5 @@ Once installed, $ man lpass - + You can view the full documentation in the manpage, `man lpass` or [view it online](https://lastpass.github.io/lastpass-cli/lpass.1.html). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/blob.c new/lastpass-cli-1.3.3/blob.c --- old/lastpass-cli-1.3.1/blob.c 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/blob.c 2019-04-15 16:15:52.000000000 +0200 @@ -910,15 +910,19 @@ local = local_blob(key, &session->private_key); if (!local) return lastpass_get_blob(session, key); + remote_version = lastpass_get_blob_version(session, key); + if (remote_version == 0) { blob_free(local); return NULL; } - if (local->version < remote_version || (local->local_version && local->version == remote_version)) { + + if (remote_version > local->version) { blob_free(local); return lastpass_get_blob(session, key); } + config_touch("blob"); return local; } @@ -938,19 +942,20 @@ struct blob *blob_load(enum blobsync sync, struct session *session, const unsigned char key[KDF_HASH_LEN]) { - if (sync == BLOB_SYNC_AUTO) { - if (!config_exists("blob")) - return blob_get_latest(session, key); - else if (time(NULL) - config_mtime("blob") <= auto_sync_time()) - return local_blob(key, &session->private_key); - return blob_get_latest(session, key); - } else if (sync == BLOB_SYNC_YES) + if (sync == BLOB_SYNC_YES) return blob_get_latest(session, key); - else if (sync == BLOB_SYNC_NO) + + if (sync == BLOB_SYNC_NO) return local_blob(key, &session->private_key); - return NULL; + if (config_exists("blob") && + time(NULL) - config_mtime("blob") < auto_sync_time()) { + return local_blob(key, &session->private_key); + } + + return blob_get_latest(session, key); } + void blob_save(const struct blob *blob, const unsigned char key[KDF_HASH_LEN]) { _cleanup_free_ char *bluffer = NULL; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/cmd-import.c new/lastpass-cli-1.3.3/cmd-import.c --- old/lastpass-cli-1.3.1/cmd-import.c 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/cmd-import.c 2019-04-15 16:15:52.000000000 +0200 @@ -263,8 +263,10 @@ if (url_index == -1 && username_index == -1 && password_index == -1 && extra_index == -1 && name_index == -1 && grouping_index == -1 && - fav_index == -1) + fav_index == -1) { + die("Could not read the CSV header at the first line of the input file"); return 0; + } first = record; list_for_each_entry(record, &items, list) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/cmd-logout.c new/lastpass-cli-1.3.3/cmd-logout.c --- old/lastpass-cli-1.3.1/cmd-logout.c 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/cmd-logout.c 2019-04-15 16:15:52.000000000 +0200 @@ -74,18 +74,18 @@ if (optind < argc) die_usage(cmd_logout_usage); - if (!config_exists("verify")) - die("Not currently logged in."); - if (!force && !ask_yes_no(true, "Are you sure you would like to log out?")) { terminal_printf(TERMINAL_FG_YELLOW TERMINAL_BOLD "Log out" TERMINAL_RESET ": aborted.\n"); return 1; } - init_all(0, key, &session, NULL); + if (agent_ask(key)) { + init_all(0, key, &session, NULL); + lastpass_logout(session); + } session_kill(); - lastpass_logout(session); + terminal_printf(TERMINAL_FG_YELLOW TERMINAL_BOLD "Log out" TERMINAL_RESET ": complete.\n"); return 0; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/config.c new/lastpass-cli-1.3.3/config.c --- old/lastpass-cli-1.3.1/config.c 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/config.c 2019-04-15 16:15:52.000000000 +0200 @@ -159,6 +159,21 @@ } else if (ret == -1) die_errno("stat(%s)", config); + _cleanup_free_ char *buffer = xstrdup(name); + _cleanup_free_ char *dir_path = xstrdup(config); + char *saveptr = NULL; + for (char *token = strtok_r(buffer, "/", &saveptr); token && saveptr && strlen(saveptr) > 0; token = strtok_r(NULL, "/", &saveptr)) { + xstrappendf(&dir_path, "/%s", token); + + ret = stat(dir_path, &sbuf); + if ((ret == -1 && errno == ENOENT) || !S_ISDIR(sbuf.st_mode)) { + unlink(dir_path); + if (mkdir(dir_path, 0700) < 0) + die_errno("mkdir(%s)", dir_path); + } else if (ret == -1) + die_errno("stat(%s)", dir_path); + } + xasprintf(&path, "%s/%s", config, name); return path; @@ -175,7 +190,7 @@ } /* 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; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/contrib/Dockerfile new/lastpass-cli-1.3.3/contrib/Dockerfile --- old/lastpass-cli-1.3.1/contrib/Dockerfile 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/contrib/Dockerfile 2019-04-15 16:15:52.000000000 +0200 @@ -1,4 +1,4 @@ -FROM debian:testing-slim +FROM debian:testing-slim as build ENV DEBIAN_FRONTEND=noninteractive @@ -8,18 +8,19 @@ RUN apt-get update \ && apt-get --no-install-recommends -yqq install \ - bash-completion \ + # Build dependencies build-essential \ cmake \ - libcurl3 \ libcurl4-openssl-dev \ - # We install libssl1.0-dev because.. warnings otherwise - #libssl-dev \ - libssl1.0-dev \ - libxml2 \ + libssl-dev \ libxml2-dev \ - openssl \ pkg-config \ + # Run time dependencies + libcurl4 \ + libssl1.1 \ + libxml2 \ + # Optionals handy for testing within the container + bash-completion \ ca-certificates \ xclip \ && make \ @@ -28,8 +29,7 @@ && apt-get autoremove --purge -yqq \ bash-completion \ libcurl4-openssl-dev \ - libssl1.0-dev \ - #libssl-dev \ + libssl-dev \ libxml2-dev \ pkg-config \ && apt-get clean \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/contrib/Dockerfile.Debian-stable new/lastpass-cli-1.3.3/contrib/Dockerfile.Debian-stable --- old/lastpass-cli-1.3.1/contrib/Dockerfile.Debian-stable 1970-01-01 01:00:00.000000000 +0100 +++ new/lastpass-cli-1.3.3/contrib/Dockerfile.Debian-stable 2019-04-15 16:15:52.000000000 +0200 @@ -0,0 +1,36 @@ +FROM debian:stable-slim as build + +ENV DEBIAN_FRONTEND=noninteractive + +RUN mkdir -p /tmp/build +WORKDIR /tmp/build +COPY . /tmp/build/ + +RUN apt-get update \ + && apt-get --no-install-recommends -yqq install \ + # Build dependencies + build-essential \ + cmake \ + libcurl3-openssl-dev \ + libssl1.0-dev \ + libxml2-dev \ + pkg-config \ + # Run time dependencies + libcurl3 \ + libssl1.0 \ + libxml2 \ + # Optionals handy for testing within the container + bash-completion \ + ca-certificates \ + xclip \ + && make \ + && make test \ + && make install \ + && apt-get autoremove --purge -yqq \ + bash-completion \ + libcurl3-openssl-dev \ + libssl1.0-dev \ + libxml2-dev \ + pkg-config \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /var/cache/apt/* /tmp/build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/contrib/Dockerfile.dev new/lastpass-cli-1.3.3/contrib/Dockerfile.dev --- old/lastpass-cli-1.3.1/contrib/Dockerfile.dev 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/contrib/Dockerfile.dev 2019-04-15 16:15:52.000000000 +0200 @@ -7,18 +7,19 @@ RUN apt-get update \ && apt-get --no-install-recommends -y install \ - bash-completion \ + # Build dependencies build-essential \ cmake \ - libcurl3 \ libcurl4-openssl-dev \ - # We install libssl1.0-dev because.. warnings otherwise - #libssl-dev \ - libssl1.0-dev \ - libxml2 \ + libssl-dev \ libxml2-dev \ - openssl \ pkg-config \ + # Run time dependencies + libssl1.1 \ + libcurl4 \ + libxml2 \ + # Optionals handy for testing within the container + bash-completion \ ca-certificates \ xclip diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/debian/changelog new/lastpass-cli-1.3.3/debian/changelog --- old/lastpass-cli-1.3.1/debian/changelog 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/debian/changelog 2019-04-15 16:15:52.000000000 +0200 @@ -1,3 +1,15 @@ +lastpass-cli (1.3.3) unstable; urgency=medium + + * New upstream 1.3.3 + + -- Gergo Paulovics <[email protected]> Mon, 15 Apr 2019 14:07:04 +0200 + +lastpass-cli (1.3.2) unstable; urgency=medium + + * New upstream 1.3.2 + + -- Gergo Paulovics <[email protected]> Fri, 22 Mar 2019 12:59:04 +0200 + lastpass-cli (1.3.1) unstable; urgency=medium Thu, 17 May 2018 11:39:15 +0200 * New upstream 1.3.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/http.c new/lastpass-cli-1.3.3/http.c --- old/lastpass-cli-1.3.1/http.c 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/http.c 2019-04-15 16:15:52.000000000 +0200 @@ -278,6 +278,11 @@ curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_USERAGENT, LASTPASS_CLI_USERAGENT); + /* TODO: Make this optional via either env vars and/or an option for + * lpass -4 or lpass -6 + */ + curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); + if (lpass_log_level() >= LOG_VERBOSE) { logstream = lpass_log_open(); if (logstream) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/lpass.c new/lastpass-cli-1.3.3/lpass.c --- old/lastpass-cli-1.3.1/lpass.c 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/lpass.c 2019-04-15 16:15:52.000000000 +0200 @@ -46,6 +46,10 @@ #include <getopt.h> #include <unistd.h> +#if (defined(__APPLE__) && defined(__MACH__)) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) +#include <libgen.h> +#endif + #define CMD(name) { #name, cmd_##name##_usage, cmd_##name } static struct { const char *name; @@ -81,7 +85,7 @@ terminal_printf("Usage:\n"); printf(" %s {--help|--version}\n", ARGV[0]); for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) - printf(" %s %s\n", ARGV[0], commands[i].usage); + printf(" %s %s\n", basename(ARGV[0]), commands[i].usage); } static int global_options(int argc, char *argv[]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/session.c new/lastpass-cli-1.3.3/session.c --- old/lastpass-cli-1.3.1/session.c 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/session.c 2019-04-15 16:15:52.000000000 +0200 @@ -101,8 +101,11 @@ void session_kill() { - if (!config_unlink("verify") || !config_unlink("username") || !config_unlink("session_sessionid") || !config_unlink("iterations")) - die_errno("could not log out."); + config_unlink("verify"); + config_unlink("username"); + config_unlink("session_sessionid"); + config_unlink("iterations"); + config_unlink("blob"); config_unlink("session_token"); config_unlink("session_uid"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.1/version.h new/lastpass-cli-1.3.3/version.h --- old/lastpass-cli-1.3.1/version.h 2018-05-17 11:42:27.000000000 +0200 +++ new/lastpass-cli-1.3.3/version.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -#define LASTPASS_CLI_VERSION "1.3.1" -#define LASTPASS_CLI_USERAGENT "LastPass-CLI/" LASTPASS_CLI_VERSION
