Hello community,

here is the log from the commit of package pam_kwallet for openSUSE:Factory 
checked in at 2017-01-29 10:41:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pam_kwallet (Old)
 and      /work/SRC/openSUSE:Factory/.pam_kwallet.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pam_kwallet"

Changes:
--------
--- /work/SRC/openSUSE:Factory/pam_kwallet/pam_kwallet.changes  2016-07-18 
21:25:12.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.pam_kwallet.new/pam_kwallet.changes     
2017-02-03 17:52:48.268624598 +0100
@@ -1,0 +2,20 @@
+Thu Jan 26 19:58:52 CET 2017 - [email protected]
+
+- Update to 5.9.0
+  * New feature release
+  * For more details please see:
+  * https://www.kde.org/announcements/plasma-5.9.0.php
+- Changes since 5.8.95:
+  * None
+
+-------------------------------------------------------------------
+Thu Jan 12 20:39:58 UTC 2017 - [email protected]
+
+- Update to 5.8.95 (Plasma 5.9 Beta)
+  * New feature release
+  * For more details please see:
+    https://www.kde.org/announcements/plasma-5.8.95.php
+- Changes:
+  * None
+
+-------------------------------------------------------------------

Old:
----
  kwallet-pam-5.7.1.tar.xz

New:
----
  kwallet-pam-5.9.0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ pam_kwallet.spec ++++++
--- /var/tmp/diff_new_pack.2yQJks/_old  2017-02-03 17:52:48.592578921 +0100
+++ /var/tmp/diff_new_pack.2yQJks/_new  2017-02-03 17:52:48.592578921 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package pam_kwallet
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -17,7 +17,7 @@
 
 
 Name:           pam_kwallet
-Version:        5.7.1
+Version:        5.9.0
 Release:        0
 Summary:        A PAM Module for kwallet signing
 License:        LGPL-2.1 and GPL-2.0+ and GPL-3.0

++++++ kwallet-pam-5.7.1.tar.xz -> kwallet-pam-5.9.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kwallet-pam-5.7.1/CMakeLists.txt 
new/kwallet-pam-5.9.0/CMakeLists.txt
--- old/kwallet-pam-5.7.1/CMakeLists.txt        2016-07-12 14:44:33.000000000 
+0200
+++ new/kwallet-pam-5.9.0/CMakeLists.txt        2017-01-26 13:18:03.000000000 
+0100
@@ -1,7 +1,7 @@
 project(pam_kwallet)
 cmake_minimum_required(VERSION 2.8.12)
 
-set(PROJECT_VERSION "5.7.1")
+set(PROJECT_VERSION "5.9.0")
 set(PROJECT_VERSION_MAJOR 5)
 
 find_package (ECM 1.2.0 REQUIRED NO_MODULE)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kwallet-pam-5.7.1/pam_kwallet.c 
new/kwallet-pam-5.9.0/pam_kwallet.c
--- old/kwallet-pam-5.7.1/pam_kwallet.c 2016-07-12 14:44:33.000000000 +0200
+++ new/kwallet-pam-5.9.0/pam_kwallet.c 2017-01-26 13:18:03.000000000 +0100
@@ -107,10 +107,6 @@
         logPrefix = "pam_kwallet";
     }
 #endif
-
-    if (socketPath == NULL) {
-        socketPath = "/tmp";
-    }
 }
 
 static const char* get_env(pam_handle_t *ph, const char *name)
@@ -404,14 +400,28 @@
     }
 
 #ifdef KWALLET5
-    const char *socketPrefix = "kwallet5_";
+    const char *socketPrefix = "kwallet5";
 #else
-    const char *socketPrefix = "kwallet_";
+    const char *socketPrefix = "kwallet";
 #endif
 
-    int len = strlen(socketPath) + strlen(userInfo->pw_name) + 
strlen(socketPrefix) + 9;// 9 = slash+.socket+null
-    char *fullSocket = (char*) malloc(len);
-    sprintf(fullSocket, "%s/%s%s%s", socketPath, socketPrefix, 
userInfo->pw_name, ".socket");
+    char *fullSocket = NULL;
+    if (socketPath) {
+        size_t needed = snprintf(NULL, 0, "%s/%s_%s%s", socketPath, 
socketPrefix, userInfo->pw_name, ".socket");
+        fullSocket = malloc(needed);
+        snprintf(fullSocket, needed, "%s/%s_%s%s", socketPath, socketPrefix, 
userInfo->pw_name, ".socket");
+    } else {
+        socketPath = get_env(pamh, "XDG_RUNTIME_DIR");
+        if (socketPath) {
+            size_t needed = snprintf(NULL, 0, "%s/%s%s", socketPath, 
socketPrefix, ".socket");
+            fullSocket = malloc(needed);
+            snprintf(fullSocket, needed, "%s/%s%s", socketPath, socketPrefix, 
".socket");
+        } else {
+            size_t needed = snprintf(NULL, 0, "/tmp/%s_%s%s", socketPrefix, 
userInfo->pw_name, ".socket");
+            fullSocket = malloc(needed);
+            snprintf(fullSocket, needed, "/tmp/%s_%s%s", socketPrefix, 
userInfo->pw_name, ".socket");
+        }
+    }
 
     int result = set_env(pamh, envVar, fullSocket);
     if (result != PAM_SUCCESS) {
@@ -423,7 +433,7 @@
     struct sockaddr_un local;
     local.sun_family = AF_UNIX;
 
-    if ((size_t)len > sizeof(local.sun_path)) {
+    if (strlen(fullSocket) > sizeof(local.sun_path)) {
         pam_syslog(pamh, LOG_ERR, "%s: socket path %s too long to open",
                    logPrefix, fullSocket);
         return;
@@ -433,7 +443,7 @@
 
     pam_syslog(pamh, LOG_INFO, "%s: final socket path: %s", logPrefix, 
fullSocket);
 
-    len = strlen(local.sun_path) + sizeof(local.sun_family);
+    size_t len = strlen(local.sun_path) + sizeof(local.sun_family);
     if (bind(envSocket, (struct sockaddr *)&local, len) == -1) {
         pam_syslog(pamh, LOG_INFO, "%s-kwalletd: Couldn't bind to local 
file\n", logPrefix);
         return;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kwallet-pam-5.7.1/pam_kwallet_init.desktop.cmake 
new/kwallet-pam-5.9.0/pam_kwallet_init.desktop.cmake
--- old/kwallet-pam-5.7.1/pam_kwallet_init.desktop.cmake        2016-07-12 
14:44:33.000000000 +0200
+++ new/kwallet-pam-5.9.0/pam_kwallet_init.desktop.cmake        2017-01-26 
13:18:03.000000000 +0100
@@ -8,8 +8,11 @@
 Name[el]=Σύνδεση υποδοχής KWallet PAM
 Name[en_GB]=KWallet PAM Socket Connection
 Name[es]=Conexión con el «socket» PAM de KWallet
+Name[et]=KDE turvalaeka PAM-sokli ühendus
 Name[fi]=KWalletin PAM-pistokeyhteys
+Name[fr]=Connection au socket PAM de KWallet
 Name[gl]=Conexión ao sócket PAM de KWallet
+Name[ia]=Connexion de PAM Socket de KWallet
 Name[it]=Connessione socket PAM di KWallet
 Name[ko]=KWallet PAM 소켓 연결
 Name[nl]=KWallet verbinding met PAM-socket
@@ -28,6 +31,7 @@
 Name[uk]=З’єднання із сокетом PAM KWallet
 Name[x-test]=xxKWallet PAM Socket Connectionxx
 Name[zh_CN]=KWallet PAM 套接字连接
+Name[zh_TW]=KWallet PAM Socket 連線
 Comment=Connect to KWallet PAM socket
 Comment[ca]=Connecta a un sòcol PAM del KWallet
 Comment[ca@valencia]=Connecta a un sòcol PAM del KWallet
@@ -36,8 +40,11 @@
 Comment[el]=Σύνδεση με υποδοχή KWallet PAM
 Comment[en_GB]=Connect to KWallet PAM socket
 Comment[es]=Conectar con el «socket» PAM de KWallet
+Comment[et]=Ühendumine KDE turvalaeka PAM-sokliga
 Comment[fi]=Yhteys KWalletin PAM-pistokkeeseen
+Comment[fr]=Connecter au socket PAM de KWallet
 Comment[gl]=Conectar ao sócket PAM de KWallet
+Comment[ia]=Connecte a PAMsoccket de KWallet
 Comment[it]=Connetti al socket PAM di KWallet
 Comment[ko]=KWallet PAM 소켓에 연결할 수 없음
 Comment[nl]=Verbinden met KWallet PAM-socket
@@ -56,6 +63,7 @@
 Comment[uk]=З’єднатися із сокетом PAM KWallet
 Comment[x-test]=xxConnect to KWallet PAM socketxx
 Comment[zh_CN]=连接到 KWallet PAM 套接字
+Comment[zh_TW]=連線到 KWallet PAM socket
 Exec=${CMAKE_INSTALL_FULL_LIBEXECDIR}/pam_kwallet_init
 Type=Application
 NoDisplay=true


Reply via email to