Hello community,
here is the log from the commit of package resmgr
checked in at Fri Dec 8 16:23:23 CET 2006.
--------
--- resmgr/resmgr.changes 2006-11-30 13:17:03.000000000 +0100
+++ /mounts/work_src_done/STABLE/resmgr/resmgr.changes 2006-12-08 14:58:13.000000000 +0100
@@ -1,0 +2,8 @@
+Fri Dec 8 14:55:41 CET 2006 - lnussel@suse.de
+
+- fix build with newer automake by upgrading to current svn
+- don't provide 32bit compatability provides in 64bit package
+ (#224596)
+- run ldconfig before restarting the daemon in %postun (#224555)
+
+-------------------------------------------------------------------
Old:
----
resmgr-1.1.0_SVNr123.tar.bz2
resmgr-r128.diff
New:
----
resmgr-1.1.0_SVNr128.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ resmgr.spec ++++++
--- /var/tmp/diff_new_pack.kEudqc/_old 2006-12-08 16:23:07.000000000 +0100
+++ /var/tmp/diff_new_pack.kEudqc/_new 2006-12-08 16:23:07.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package resmgr (Version 1.1.0_SVNr123)
+# spec file for package resmgr (Version 1.1.0_SVNr128)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -14,21 +14,21 @@
BuildRequires: pam-devel
License: GNU General Public License (GPL)
Group: System/Daemons
-Version: 1.1.0_SVNr123
-Release: 9
+Version: 1.1.0_SVNr128
+Release: 1
Summary: A program to track when users log in and out
Source: resmgr-%{version}.tar.bz2
Source1: resmgr.init
Source2: resmgr-doc.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Provides: libresmgr.so.0.9.8
# if you know a better way for that provides feel free to fix it
%ifarch x86_64 ia64 s390x ppc64
Provides: libresmgr.so.0.9.8()(64bit)
+%else
+Provides: libresmgr.so.0.9.8
%endif
URL: http://forge.novell.com/modules/xfmod/project/?resmgr
PreReq: %insserv_prereq %fillup_prereq
-Patch: resmgr-r128.diff
%description
resmgr tracks when users log in and out via PAM module. It then
@@ -43,7 +43,6 @@
%prep
%setup
-%patch
%build
CFLAGS="%{optflags}" \
@@ -91,8 +90,8 @@
%{fillup_and_insserv -y resmgr}
%postun
-%restart_on_update resmgr
%run_ldconfig
+%restart_on_update resmgr
%{insserv_cleanup}
%files
@@ -116,6 +115,11 @@
%dir /var/run/resmgr/classes
%changelog -n resmgr
+* Fri Dec 08 2006 - lnussel@suse.de
+- fix build with newer automake by upgrading to current svn
+- don't provide 32bit compatability provides in 64bit package
+ (#224596)
+- run ldconfig before restarting the daemon in %%postun (#224555)
* Thu Nov 30 2006 - lnussel@suse.de
- also fix quoting in pam module
* Wed Nov 29 2006 - lnussel@suse.de
++++++ resmgr-1.1.0_SVNr123.tar.bz2 -> resmgr-1.1.0_SVNr128.tar.bz2 ++++++
++++ 6660 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/resmgr-1.1.0_SVNr123/src/Makefile.am new/resmgr-1.1.0_SVNr128/src/Makefile.am
--- old/resmgr-1.1.0_SVNr123/src/Makefile.am 2006-09-12 18:32:56.000000000 +0200
+++ new/resmgr-1.1.0_SVNr128/src/Makefile.am 2006-11-30 13:07:36.000000000 +0100
@@ -14,7 +14,7 @@
endif
resmgr_DEPENDENCIES = libresmgr.so
-resmgr_SOURCES = resmgr.c
+resmgr_SOURCES = resmgr.c utils.c
resmgr_LDADD = -L$(top_builddir)/src -lresmgr
resmgr_LDFLAGS = -Wl,--as-needed
@@ -59,10 +59,10 @@
if BUILD_LIB
pam_resmgr_so_DEPENDENCIES = libresmgr.so
endif
-pam_resmgr_so_SOURCES = pam_resmgr.c
+pam_resmgr_so_SOURCES = pam_resmgr.c utils.c
pam_resmgr_so_LDFLAGS = -shared -Wl,-soname,pam_resmgr.so -Wl,--as-needed
pam_resmgr_so_CFLAGS = -fPIC -DPIC
-pam_resmgr_so_LDADD = -L$(top_builddir)/src -lresmgr
+pam_resmgr_so_LDADD = -L$(top_builddir)/src -lresmgr -lpam
EXTRA_DIST = libresmgr.map
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/resmgr-1.1.0_SVNr123/src/client.c new/resmgr-1.1.0_SVNr128/src/client.c
--- old/resmgr-1.1.0_SVNr123/src/client.c 2006-09-12 18:43:27.000000000 +0200
+++ new/resmgr-1.1.0_SVNr128/src/client.c 2006-11-29 11:53:06.000000000 +0100
@@ -202,12 +202,15 @@
int
rsm_login(const char *user, const char *tty)
{
- if (!sane_user(user) || !sane(tty)) {
+ char buf[PATH_MAX];
+
+ if (!sane_user(user) || !sane(tty)
+ || res_quote_dblquote_backslash(buf, user, sizeof(buf)) == -1) {
errno = EINVAL;
return -1;
}
- return rsm_command(NULL, "login \"%s\" %s", user, tty);
+ return rsm_command(NULL, "login \"%s\" %s", buf, tty);
}
int
@@ -224,25 +227,31 @@
int
rsm_grant(const char *user, const char *classname)
{
- if (!sane(user) || !sane(classname)) {
+ char buf[PATH_MAX];
+
+ if (!sane(user) || !sane(classname)
+ || res_quote_dblquote_backslash(buf, user, sizeof(buf)) == -1) {
errno = EINVAL;
return -1;
}
- return rsm_command(NULL, "grant %s %s", user, classname);
+ return rsm_command(NULL, "grant \"%s\" %s", buf, classname);
}
int
rsm_revoke(const char *user, const char *classname)
{
- if (!sane_user(user) || (classname && !sane(classname))) {
+ char buf[PATH_MAX];
+
+ if (!sane_user(user) || (classname && !sane(classname))
+ || res_quote_dblquote_backslash(buf, user, sizeof(buf)) == -1) {
errno = EINVAL;
return -1;
}
if (classname)
- return rsm_command(NULL, "revoke \"%s\" %s", user, classname);
- return rsm_command(NULL, "revoke %s", user);
+ return rsm_command(NULL, "revoke \"%s\" %s", buf, classname);
+ return rsm_command(NULL, "revoke \"%s\"", buf);
}
int
@@ -317,16 +326,20 @@
char ** rsm_list_classes(const char* user)
{
+ char buf[PATH_MAX];
char **result = NULL;
struct conn *conn;
+ if(user && res_quote_dblquote_backslash(buf, user, sizeof(buf)) == -1)
+ goto out;
+
if (!(conn = the_connection)
&& !(conn = rsm_connect_to(_PATH_RESMGR_SOCKET))) {
syslog(LOG_NOTICE, "resmgr: unable to connect to resmgrd: %m");
goto out;
}
- if(rsm_printf(conn, "classes %s", user?user:"") >= 0) {
+ if(rsm_printf(conn, "classes \"%s\"", user?user:"") >= 0) {
result = rsm_recv_multiline(conn, NULL, NULL);
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/resmgr-1.1.0_SVNr123/src/pam_resmgr.c new/resmgr-1.1.0_SVNr128/src/pam_resmgr.c
--- old/resmgr-1.1.0_SVNr123/src/pam_resmgr.c 2006-10-23 15:16:59.000000000 +0200
+++ new/resmgr-1.1.0_SVNr128/src/pam_resmgr.c 2006-11-30 13:07:44.000000000 +0100
@@ -14,6 +14,7 @@
#include