Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lastpass-cli for openSUSE:Factory checked in at 2023-01-24 19:43:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lastpass-cli (Old) and /work/SRC/openSUSE:Factory/.lastpass-cli.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lastpass-cli" Tue Jan 24 19:43:49 2023 rev:11 rq:1060594 version:1.3.4 Changes: -------- --- /work/SRC/openSUSE:Factory/lastpass-cli/lastpass-cli.changes 2020-06-07 21:38:18.441448011 +0200 +++ /work/SRC/openSUSE:Factory/.lastpass-cli.new.32243/lastpass-cli.changes 2023-01-24 20:24:30.733821863 +0100 @@ -1,0 +2,6 @@ +Fri Jan 20 17:27:49 UTC 2023 - Dirk Müller <[email protected]> + +- update to 1.3.4: + * Updating post parameter + +------------------------------------------------------------------- Old: ---- lastpass-cli-1.3.3.tar.gz New: ---- lastpass-cli-1.3.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lastpass-cli.spec ++++++ --- /var/tmp/diff_new_pack.aQucPu/_old 2023-01-24 20:24:31.249825385 +0100 +++ /var/tmp/diff_new_pack.aQucPu/_new 2023-01-24 20:24:31.265825494 +0100 @@ -1,7 +1,7 @@ # # spec file for package lastpass-cli # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: lastpass-cli -Version: 1.3.3 +Version: 1.3.4 Release: 0 Summary: LastPass command line interface tool License: GPL-2.0-only ++++++ lastpass-cli-1.3.3.tar.gz -> lastpass-cli-1.3.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.3/CHANGELOG.md new/lastpass-cli-1.3.4/CHANGELOG.md --- old/lastpass-cli-1.3.3/CHANGELOG.md 2019-04-15 16:15:52.000000000 +0200 +++ new/lastpass-cli-1.3.4/CHANGELOG.md 2022-12-09 12:04:16.000000000 +0100 @@ -1,7 +1,10 @@ +# Version 1.3.4 +* Updating post parameter (Gergely Der) + # 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) + * 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) # Version 1.3.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.3/LASTPASS-VERSION-GEN new/lastpass-cli-1.3.4/LASTPASS-VERSION-GEN --- old/lastpass-cli-1.3.3/LASTPASS-VERSION-GEN 2019-04-15 16:15:52.000000000 +0200 +++ new/lastpass-cli-1.3.4/LASTPASS-VERSION-GEN 2022-12-09 12:04:16.000000000 +0100 @@ -4,7 +4,7 @@ # 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 +DEF_VER=v1.3.4.GIT LF=' ' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.3/README.md new/lastpass-cli-1.3.4/README.md --- old/lastpass-cli-1.3.3/README.md 2019-04-15 16:15:52.000000000 +0200 +++ new/lastpass-cli-1.3.4/README.md 2022-12-09 12:04:16.000000000 +0100 @@ -1,5 +1,5 @@ # LastPass CLI -#### (c) 2014-2018 LastPass. +#### (c) 2014-2019 LastPass. Command line interface to [LastPass.com](https://lastpass.com/). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.3/agent.c new/lastpass-cli-1.3.4/agent.c --- old/lastpass-cli-1.3.3/agent.c 2019-04-15 16:15:52.000000000 +0200 +++ new/lastpass-cli-1.3.4/agent.c 2022-12-09 12:04:16.000000000 +0100 @@ -136,6 +136,26 @@ } #endif +void _assert_socket_sun_path(struct sockaddr_un *sa, char *path) +{ + if (strlen(path) >= sizeof(sa->sun_path)) { + die("Path too large for agent control socket."); + } +} + +int _setup_agent_socket(struct sockaddr_un *sa, char *path) +{ + int fd; + + _assert_socket_sun_path(sa, path); + memset(sa, 0, sizeof(*sa)); + sa->sun_family = AF_UNIX; + strlcpy(sa->sun_path, path, sizeof(sa->sun_path)); + + fd = socket(AF_UNIX, SOCK_STREAM, 0); + return fd; +} + static void agent_run(unsigned const char key[KDF_HASH_LEN]) { char *agent_timeout_str; @@ -150,6 +170,7 @@ signal(SIGQUIT, agent_cleanup); signal(SIGTERM, agent_cleanup); signal(SIGALRM, agent_cleanup); + agent_timeout_str = getenv("LPASS_AGENT_TIMEOUT"); agent_timeout = 60 * 60; /* One hour by default. */ if (agent_timeout_str && strlen(agent_timeout_str)) @@ -158,14 +179,7 @@ alarm(agent_timeout); _cleanup_free_ char *path = agent_socket_path(); - if (strlen(path) >= sizeof(sa.sun_path)) - die("Path too large for agent control socket."); - - fd = socket(AF_UNIX, SOCK_STREAM, 0); - - memset(&sa, 0, sizeof(sa)); - sa.sun_family = AF_UNIX; - strlcpy(sa.sun_path, path, sizeof(sa.sun_path)); + fd = _setup_agent_socket(&sa, path); unlink(path); @@ -209,14 +223,7 @@ int fd; _cleanup_free_ char *path = agent_socket_path(); - if (strlen(path) >= sizeof(sa.sun_path)) - die("Path too large for agent control socket."); - - fd = socket(AF_UNIX, SOCK_STREAM, 0); - - memset(&sa, 0, sizeof(sa)); - sa.sun_family = AF_UNIX; - strlcpy(sa.sun_path, path, sizeof(sa.sun_path)); + fd = _setup_agent_socket(&sa, path); if (connect(fd, (struct sockaddr *)&sa, SUN_LEN(&sa)) < 0) goto out; @@ -243,14 +250,7 @@ bool ret = false; _cleanup_free_ char *path = agent_socket_path(); - if (strlen(path) >= sizeof(sa.sun_path)) - die("Path too large for agent control socket."); - - fd = socket(AF_UNIX, SOCK_STREAM, 0); - - memset(&sa, 0, sizeof(sa)); - sa.sun_family = AF_UNIX; - strlcpy(sa.sun_path, path, sizeof(sa.sun_path)); + fd = _setup_agent_socket(&sa, path); ret = connect(fd, (struct sockaddr *)&sa, SUN_LEN(&sa)) >= 0; if (!ret) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.3/clipboard.c new/lastpass-cli-1.3.4/clipboard.c --- old/lastpass-cli-1.3.3/clipboard.c 2019-04-15 16:15:52.000000000 +0200 +++ new/lastpass-cli-1.3.4/clipboard.c 2022-12-09 12:04:16.000000000 +0100 @@ -89,8 +89,9 @@ char *clipboard_command = getenv("LPASS_CLIPBOARD_COMMAND"); if (clipboard_command) { exec_command(clipboard_command); - die("Unable to copy contents to clipboard. Please make sure you have `xclip`, `xsel`, `pbcopy`, or `putclip` installed."); + die("Unable to copy contents to clipboard. Please make sure you have `wl-clip`, `xclip`, `xsel`, `pbcopy`, or `putclip` installed."); } else { + execlp("wl-copy", "wl-copy", NULL); execlp("xclip", "xclip", "-selection", "clipboard", "-in", NULL); execlp("xsel", "xsel", "--clipboard", "--input", NULL); execlp("pbcopy", "pbcopy", NULL); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.3/contrib/lpass-att-export.sh new/lastpass-cli-1.3.4/contrib/lpass-att-export.sh --- old/lastpass-cli-1.3.3/contrib/lpass-att-export.sh 1970-01-01 01:00:00.000000000 +0100 +++ new/lastpass-cli-1.3.4/contrib/lpass-att-export.sh 2022-12-09 12:04:16.000000000 +0100 @@ -0,0 +1,84 @@ +#!/bin/bash +## +## Usage: lpass-att-export.sh +## +## + +usage() { echo "Usage: $0 [-l <email>] [-o <outdir>] [-i <id>]" 1>&2; exit 1; } + +while getopts ":i:o:hl:" o; do + case "${o}" in + i) + id=${OPTARG} + ;; + o) + outdir=${OPTARG} + ;; + l) + email=${OPTARG} + ;; + h) + usage + ;; + *) + usage + ;; + esac +done +shift $((OPTIND-1)) + +if [ -z "${outdir}" ]; then + usage +fi + +command -v lpass >/dev/null 2>&1 || { echo >&2 "I require lpass but it's not installed. Aborting."; exit 1; } + +if [ ! -d ${outdir} ]; then + echo "${outdir} does not exist. Exiting." + exit 1 +fi + +if ! lpass status; then + if [ -z ${email} ]; then + echo "No login data found, Please login with -l or use lpass login before." + exit 1; + fi + lpass login ${email} +fi + +if [ -z ${id} ]; then + ids=$(lpass ls | sed -n "s/^.*id:\s*\([0-9]*\).*$/\1/p") +else + ids=${id} +fi + +for id in ${ids}; do + show=$(lpass show ${id}) + attcount=$(echo "${show}" | grep -c "att-") + path=$(lpass show --format="%/as%/ag%an" ${id} | uniq | tail -1) + + until [ ${attcount} -lt 1 ]; do + att=`lpass show ${id} | grep att- | sed "${attcount}q;d" | tr -d :` + attid=$(echo ${att} | awk '{print $1}') + attname=$(echo ${att} | awk '{print $2}') + + if [[ -z ${attname} ]]; then + attname=${path#*/} + fi + + path=${path//\\//} + mkdir -p "${outdir}/${path}" + out=${outdir}/${path}/${attname} + + if [[ -f ${out} ]]; then + out=${outdir}/${path}/${attcount}_${attname} + fi + + echo ${id} - ${path} ": " ${attid} "-" ${attname} " > " ${out} + + lpass show --attach=${attid} ${id} --quiet > "${out}" + + let attcount-=1 + done +done + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.3/debian/changelog new/lastpass-cli-1.3.4/debian/changelog --- old/lastpass-cli-1.3.3/debian/changelog 2019-04-15 16:15:52.000000000 +0200 +++ new/lastpass-cli-1.3.4/debian/changelog 2022-12-09 12:04:16.000000000 +0100 @@ -1,3 +1,9 @@ +lastpass-cli (1.3.4) unstable; urgency=medium + + * New upstream 1.3.4 + + -- Gergely Der <[email protected]> Fri, 09 Dec 2022 12:01:35 +0100 + lastpass-cli (1.3.3) unstable; urgency=medium * New upstream 1.3.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.3/endpoints-login.c new/lastpass-cli-1.3.4/endpoints-login.c --- old/lastpass-cli-1.3.3/endpoints-login.c 2019-04-15 16:15:52.000000000 +0200 +++ new/lastpass-cli-1.3.4/endpoints-login.c 2022-12-09 12:04:16.000000000 +0100 @@ -75,7 +75,13 @@ .error_str = "outofbandrequired", .error_failure_str = "multifactorresponsefailed", .post_var = "otp" - } + }, + { + .name = "Microsoft Authenticator Code", + .error_str = "microsoftauthrequired", + .error_failure_str = "microsoftauthfailed", + .post_var = "otp" + } }; static void filter_error_message(char *message) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastpass-cli-1.3.3/endpoints-share.c new/lastpass-cli-1.3.4/endpoints-share.c --- old/lastpass-cli-1.3.3/endpoints-share.c 2019-04-15 16:15:52.000000000 +0200 +++ new/lastpass-cli-1.3.4/endpoints-share.c 2022-12-09 12:04:16.000000000 +0100 @@ -147,7 +147,7 @@ "update", "1", "add", "1", "notify", "1", - "uid0", share_user->uid, + "username0", share_user->username, "cgid0", share_user->cgid ? share_user->cgid : "", "sharekey0", hex_enc_share_key, "sharename", enc_share_name,
