--- pam-devperm-1.6.orig/debian/dirs
+++ pam-devperm-1.6/debian/dirs
@@ -0,0 +1,2 @@
+sbin
+var/lib/pam_devperm
--- pam-devperm-1.6.orig/debian/rules
+++ pam-devperm-1.6/debian/rules
@@ -0,0 +1,79 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
+
+INSTALL_PROGRAM = install -m 755
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+config.status: patch configure
+ dh_testdir
+ ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+ $(MAKE) CFLAGS="$(CFLAGS)"
+ touch build-stamp
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ # Add here commands to clean up after the build process.
+ -$(MAKE) distclean
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/libpam-devperm INSTALL_PROGRAM="$(INSTALL_PROGRAM)"
+ rm -f $(CURDIR)/debian/libpam-devperm/etc/init.d/boot.restore_permissions
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_installdocs
+ dh_installexamples
+ dh_installinit --no-start -- start 75 S .
+ dh_installman debian/restore_devperm.1
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- pam-devperm-1.6.orig/debian/control
+++ pam-devperm-1.6/debian/control
@@ -0,0 +1,15 @@
+Source: pam-devperm
+Section: admin
+Priority: optional
+Maintainer: Debian QA Group <packages@qa.debian.org>
+Build-Depends: debhelper (>> 4.0.0), quilt (>= 0.40), libpam0g-dev
+Standards-Version: 3.8.0
+
+Package: libpam-devperm
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: PAM module to change device ownership on login
+ This PAM module allows you to change device ownership and permissions
+ when a user logs in.
+ .
+ This is functionally equivalent with SunOS logindevperm(4).
--- pam-devperm-1.6.orig/debian/compat
+++ pam-devperm-1.6/debian/compat
@@ -0,0 +1 @@
+4
--- pam-devperm-1.6.orig/debian/copyright
+++ pam-devperm-1.6/debian/copyright
@@ -0,0 +1,43 @@
+This package was debianized by Peter Mathiasson <peterm@debian.org> on
+Mon, 9 Jun 2003 13:56:44 +0200.
+
+It was downloaded from ftp://ftp.suse.com/pub/suse/
+
+Upstream Author: SuSE GmbH Nuernberg, Germany
+ Thorsten Kukuk <kukuk@suse.de>
+
+Copyright:
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+ notice, and the entire permission notice in its entirety,
+ including the disclaimer of warranties.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. The name of the author may not be used to endorse or promote
+ products derived from this software without specific prior
+ written permission.
+
+ALTERNATIVELY, this product may be distributed under the terms of
+the GNU Public License, in which case the provisions of the GPL are
+required INSTEAD OF the above restrictions. (This clause is
+necessary due to a potential bad interaction between the GPL and
+the restrictions contained in a BSD-style copyright.)
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+
+On Debian systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL-2
--- pam-devperm-1.6.orig/debian/init.d
+++ pam-devperm-1.6/debian/init.d
@@ -0,0 +1,41 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: libpam-devperm
+# Required-Start: $remote_fs
+# Required-Stop:
+# Default-Start: S
+# Default-Stop:
+# Short-Description: Restore permissions after a crash.
+# Description: Restores the permissions modified by
+# pam_devperm after a crash.
+### END INIT INFO
+
+set -e
+
+DEVICES=`/bin/ls /var/lib/pam_devperm`
+
+case "$1" in
+ start)
+ echo -n "Restoring device permissions: "
+ if [ ! -z "$DEVICES" ] ; then
+ for f in $DEVICES; do
+ /sbin/restore_devperm $f
+ done
+ fi
+ echo "Ok"
+ ;;
+ stop)
+ ;;
+ reload)
+ ;;
+ restart)
+ ;;
+ force-reload)
+ ;;
+ *)
+ echo "Usage: /etc/init.d/libpam-devperm {start}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
--- pam-devperm-1.6.orig/debian/changelog
+++ pam-devperm-1.6/debian/changelog
@@ -0,0 +1,45 @@
+pam-devperm (1.6-1) unstable; urgency=low
+
+ * QA upload.
+ * Orphan package, set Debian QA Group <packages@qa.debian.org> as
+ the maintainer. The current maintainer is no longer active.
+ * New upstream version.
+ - Drop patch to add -fPIC in configure, as this is done in
+ src/Makefile.am in the new upstream version.
+ * Move local changes to debian/patches and use quilt to apply them.
+ * New patch segf-usermsg.diff to avoid crashing when no function
+ pointer is available to pass messages back to the application
+ (Closes: #492348:).
+ * New patch reverse-restore.diff to restore permissions in the
+ reverse order of the one used to set permissions, to avoid
+ surprises with symlinked devices (Closes: #472360, #492353).
+ Patch from Christoph Pleger.
+ * Changed standards-version from 3.5.10 to 3.8.0.
+
+ -- Petter Reinholdtsen <pere@debian.org> Sun, 3 Aug 2008 12:00:19 +0200
+
+pam-devperm (1.5-2.1) unstable; urgency=low
+
+ * Non-maintainer upload to solve release goal.
+ * Add LSB dependency header to init.d scripts (Closes: #458466).
+ * Make sure to grant the same access to /dev/dsp as is granted
+ for /dev/dsp* (Closes: #393661)
+ * Change build rules to handle the nostrip option (Closes: #437733)
+
+ -- Petter Reinholdtsen <pere@debian.org> Sat, 15 Mar 2008 19:51:25 +0100
+
+pam-devperm (1.5-2) unstable; urgency=low
+
+ * Worked around a bug in the configure scripts "-shared" test. Fixes
+ HPPA buildfailure.
+
+ -- Peter Mathiasson <peterm@debian.org> Sun, 22 Jun 2003 14:51:44 +0200
+
+pam-devperm (1.5-1) unstable; urgency=low
+
+ * Initial Release.
+ Closes: #196748 (ITP: libpam-devperm -- PAM module to change device
+ ownership on login).
+
+ -- Peter Mathiasson <peterm@debian.org> Mon, 9 Jun 2003 13:56:44 +0200
+
--- pam-devperm-1.6.orig/debian/README.Debian
+++ pam-devperm-1.6/debian/README.Debian
@@ -0,0 +1,16 @@
+libpam-devperm for Debian
+-------------------------
+
+Quick instructions:
+
+Add a line such as
+session required pam_devperm.so
+to the service you like to use it with.
+
+Edit /etc/logindevperm and setup the devices you want permissions and
+ownership to change for.
+
+If you're using pam_devperm with login make sure to enable CLOSE_SESSIONS in
+your /etc/login.defs, else your permissions won't be restored on logout.
+
+ -- Peter Mathiasson <peterm@debian.org>, Mon, 9 Jun 2003 13:56:44 +0200
--- pam-devperm-1.6.orig/debian/restore_devperm.sgml
+++ pam-devperm-1.6/debian/restore_devperm.sgml
@@ -0,0 +1,125 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+ page: `docbook-to-man manpage.sgml > manpage.1'. You may view
+ the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+ less'. A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+ docbook-to-man $< > $@
+
+
+ The docbook-to-man binary is found in the docbook-to-man package.
+ Please remember that if you create the nroff version in one of the
+ debian/rules file targets (such as build), you will need to include
+ docbook-to-man in your Build-Depends control field.
+
+ -->
+
+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+ <!ENTITY dhfirstname "<firstname>Peter</firstname>">
+ <!ENTITY dhsurname "<surname>Mathiasson</surname>">
+ <!-- Please adjust the date whenever revising the manpage. -->
+ <!ENTITY dhdate "<date>2003-06-09</date>">
+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+ allowed: see man(7), man(1). -->
+ <!ENTITY dhsection "<manvolnum>1</manvolnum>">
+ <!ENTITY dhemail "<email><peterm@debian.org></email>">
+ <!ENTITY dhusername "Peter Mathiasson">
+ <!ENTITY dhucpackage "<refentrytitle>restore_devperm</refentrytitle>">
+ <!ENTITY dhpackage "restore_devperm">
+
+ <!ENTITY debian "<productname>Debian</productname>">
+ <!ENTITY gnu "<acronym>GNU</acronym>">
+ <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+ <refentryinfo>
+ <address>
+ &dhemail;
+ </address>
+ <author>
+ &dhfirstname;
+ &dhsurname;
+ </author>
+ <copyright>
+ <year>2003</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ &dhdate;
+ </refentryinfo>
+ <refmeta>
+ &dhucpackage;
+
+ &dhsection;
+ </refmeta>
+ <refnamediv>
+ <refname>&dhpackage;</refname>
+
+ <refpurpose>restore device permissions after a crash</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+ <arg><replaceable>tty</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+ <refsect1>
+ <title>DESCRIPTION</title>
+
+ <para><command>&dhpackage;</command> restores permissions changed
+ by the pam_devperm module. It's normally only runned from the boot
+ scripts.</para>
+
+ </refsect1>
+ <refsect1>
+ <title>OPTIONS</title>
+
+ <variablelist>
+ <varlistentry>
+ <term><option>tty</option></term>
+ <listitem>
+ <para>tty to restore permissions for.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1>
+ <title>SEE ALSO</title>
+
+ <para>logindevperm (5).</para>
+
+ </refsect1>
+ <refsect1>
+ <title>AUTHOR</title>
+
+ <para>This manual page was written by &dhusername; &dhemail; for
+ the &debian; system (but may be used by others). Permission is
+ granted to copy, distribute and/or modify this document under
+ the terms of the &gnu; Free Documentation
+ License, Version 1.1 or any later version published by the Free
+ Software Foundation; with no Invariant Sections, no Front-Cover
+ Texts and no Back-Cover Texts.</para>
+
+ </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
--- pam-devperm-1.6.orig/debian/docs
+++ pam-devperm-1.6/debian/docs
@@ -0,0 +1,2 @@
+NEWS
+TODO
--- pam-devperm-1.6.orig/debian/restore_devperm.1
+++ pam-devperm-1.6/debian/restore_devperm.1
@@ -0,0 +1,82 @@
+.\" This -*- nroff -*- file has been generated from
+.\" DocBook SGML with docbook-to-man on Debian GNU/Linux.
+...\"
+...\" transcript compatibility for postscript use.
+...\"
+...\" synopsis: .P! <file.ps>
+...\"
+.de P!
+\\&.
+.fl \" force out current output buffer
+\\!%PB
+\\!/showpage{}def
+...\" the following is from Ken Flowers -- it prevents dictionary overflows
+\\!/tempdict 200 dict def tempdict begin
+.fl \" prolog
+.sy cat \\$1\" bring in postscript file
+...\" the following line matches the tempdict above
+\\!end % tempdict %
+\\!PE
+\\!.
+.sp \\$2u \" move below the image
+..
+.de pF
+.ie \\*(f1 .ds f1 \\n(.f
+.el .ie \\*(f2 .ds f2 \\n(.f
+.el .ie \\*(f3 .ds f3 \\n(.f
+.el .ie \\*(f4 .ds f4 \\n(.f
+.el .tm ? font overflow
+.ft \\$1
+..
+.de fP
+.ie !\\*(f4 \{\
+. ft \\*(f4
+. ds f4\"
+' br \}
+.el .ie !\\*(f3 \{\
+. ft \\*(f3
+. ds f3\"
+' br \}
+.el .ie !\\*(f2 \{\
+. ft \\*(f2
+. ds f2\"
+' br \}
+.el .ie !\\*(f1 \{\
+. ft \\*(f1
+. ds f1\"
+' br \}
+.el .tm ? font underflow
+..
+.ds f1\"
+.ds f2\"
+.ds f3\"
+.ds f4\"
+'\" t
+.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
+.TH "restore_devperm" "1"
+.SH "NAME"
+restore_devperm \(em restore device permissions after a crash
+.SH "SYNOPSIS"
+.PP
+\fBrestore_devperm\fP [\fItty\fP]
+.SH "DESCRIPTION"
+.PP
+\fBrestore_devperm\fP restores permissions changed
+by the pam_devperm module. It's normally only runned from the boot
+scripts.
+.SH "OPTIONS"
+.IP "\fBtty\fP" 10
+tty to restore permissions for.
+.SH "SEE ALSO"
+.PP
+logindevperm (5).
+.SH "AUTHOR"
+.PP
+This manual page was written by Peter Mathiasson <peterm@debian.org> for
+the \fBDebian\fP system (but may be used by others). Permission is
+granted to copy, distribute and/or modify this document under
+the terms of the GNU Free Documentation
+License, Version 1.1 or any later version published by the Free
+Software Foundation; with no Invariant Sections, no Front-Cover
+Texts and no Back-Cover Texts.
+...\" created by instant / docbook-to-man, Mon 09 Jun 2003, 16:43
--- pam-devperm-1.6.orig/debian/patches/reverse-restore.diff
+++ pam-devperm-1.6/debian/patches/reverse-restore.diff
@@ -0,0 +1,135 @@
+From: Christoph Pleger <Christoph.Pleger@cs.uni-dortmund.de>
+To: Debian Bug Tracking System <submit@bugs.debian.org>
+Subject: libpam-devperm: Restore device permissions in reverse order
+Date: Fri, 25 Jul 2008 16:39:00 +0200
+
+Package: libpam-devperm
+Version: 1.5-2
+Severity: normal
+Tags: patch
+
+Hello,
+
+after logging out, libpam-devperm restores the device permissions in the same
+order as they are when logging in. This leads to problems if the devices
+listed in /etc/logindevperm are linked with each other.
+
+Imagine the following line in /etc/logindevperm:
+
+:0 0600 /dev/cdrom:/dev/cdrom0:/dev/cdrom1:/dev/cdrom2:/dev/cdrom3
+
+Then, if /dev/cdrom and /dev/cdrom0 are links to the same device, let's say
+/dev/hdc, the following happens when user test logs in:
+
+1. libpam-devperm acts on /dev/cdrom. This saves the old ownerships
+ and permissions (probably root:cdrom and 660) of /dev/hdc and changes
+ them to test:cdrom and 600.
+2. libpam-devperm acts on /dev/cdrom0. This saves the ownerships and
+ permissions that were set in step 1, test:cdrom and 600.
+
+And when user test logs out:
+
+3. libpam-devperm acts on /dev/cdrom. This restores the old ownerships
+ and permissions of /dev/hdc, root:cdrom and 660.
+4. libpam-devperm acts on /dev/cdrom0. This restores the ownerships and
+ permissions of /dev/hdc that were saved in step 2, test:cdrom and 600.
+
+So, after logging out the device /dev/hdc does not have the same permissions
+and ownerships as before logging in. This problem can be avoided if the
+saved values for permissions and ownerships are restored in reverse order.
+In the example, step 3 would be executed after step 4, so that /dev/hdc
+would get the correct settings.
+
+The patch shown below can do the work.
+
+Regards
+ Christoph
+
+
+
+--- pam-devperm-1.5.orig/src/restore_permissions.c
++++ pam-devperm-1.5/src/restore_permissions.c
+@@ -47,6 +47,49 @@
+
+ #include "common.h"
+
++struct devlist_t {
++ char *device;
++ int perm;
++ unsigned long int uid;
++ unsigned long int gid;
++ struct devlist_t *prev;
++ struct devlist_t *next;
++};
++
++struct devlist_t *devlist = NULL;
++
++void insert(const char *device, int perm, unsigned long int uid, unsigned long int gid)
++{
++ struct devlist_t *temp;
++
++ temp = (struct devlist_t *) malloc(sizeof(struct devlist_t));
++ temp->device = strdup(device);
++ temp->perm = perm;
++ temp->uid = uid;
++ temp->gid = gid;
++ temp->next = NULL;
++ temp->prev = devlist;
++
++ if (devlist != NULL)
++ devlist->next = temp;
++
++ devlist = temp;
++}
++
++void delete(void)
++{
++ struct devlist_t *temp;
++
++ temp = devlist;
++
++ if (devlist != NULL)
++ {
++ devlist = devlist->prev;
++ free(temp->device);
++ free(temp);
++ }
++}
++
+ int
+ restore_permissions (const char *tty)
+ {
+@@ -85,8 +128,15 @@
+ continue; /* empty or comment */
+ *cp++ = 0;
+ sscanf(cp, "%o %lu %lu", &perm, &uid, &gid);
+- login_protect (device, perm, uid, gid, NULL);
++ insert(device,perm,uid,gid);
+ }
++
++ while (devlist != NULL)
++ {
++ login_protect (devlist->device, devlist->perm, devlist->uid, devlist->gid, NULL);
++ delete();
++ }
++
+ fclose(fp);
+ unlink (save_perms);
+
+
+
+-- System Information:
+Debian Release: 4.0
+ APT prefers stable
+ APT policy: (500, 'stable')
+Architecture: i386 (i686)
+Shell: /bin/sh linked to /bin/bash
+Kernel: Linux 2.6.18-6-686
+Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
+
+Versions of packages libpam-devperm depends on:
+ii libc6 2.3.6.ds1-13etch5 GNU C Library: Shared libraries
+
+libpam-devperm recommends no packages.
+
+-- no debconf information
--- pam-devperm-1.6.orig/debian/patches/defaultperms.diff
+++ pam-devperm-1.6/debian/patches/defaultperms.diff
@@ -0,0 +1,11 @@
+--- pam-devperm-1.5.orig/etc/logindevperm
++++ pam-devperm-1.5/etc/logindevperm
+@@ -24,7 +24,7 @@
+ :0 0600 /dev/cdrecorder:/dev/cdrecorder1:/dev/cdrecorder2:/dev/cdrecorder3
+ :0 0600 /dev/dvd:/dev/dvd1:/dev/dvd2:/dev/dvd3
+ :0 0600 /dev/zip:/dev/zip1:/dev/zip2:/dev/zip3
+-:0 0600 /dev/dsp0:/dev/dsp1:/dev/dsp2:/dev/dsp3
++:0 0600 /dev/dsp:/dev/dsp0:/dev/dsp1:/dev/dsp2:/dev/dsp3
+ :0 0600 /dev/fd0:/dev/fd0u1440:/dev/fd0h1440:/dev/fd0u720:/dev/fd0h720
+ :0 0600 /dev/fd1:/dev/fd1u1440:/dev/fd1h1440:/dev/fd1u720:/dev/fd1h720
+ :0 0600 /dev/sequencer:/dev/sequencer2:/dev/music
--- pam-devperm-1.6.orig/debian/patches/series
+++ pam-devperm-1.6/debian/patches/series
@@ -0,0 +1,4 @@
+defaultperms.diff
+new-autoconf-helpers.diff
+segf-usermsg.diff
+reverse-restore.diff
--- pam-devperm-1.6.orig/debian/patches/segf-usermsg.diff
+++ pam-devperm-1.6/debian/patches/segf-usermsg.diff
@@ -0,0 +1,20 @@
+Make sure to not segfault when no the application didn't provide a
+function pointer to use for messages. Fixes problem reported in
+#492348.
+
+Patch by Petter Reinholdtsen <pere@hungry.com> 2008-08-03
+
+--- pam-devperm-1.6.orig/src/support.c
++++ pam-devperm-1.6/src/support.c
+@@ -70,8 +70,9 @@
+ conv = (struct pam_conv *) conv_void;
+ if (retval == PAM_SUCCESS)
+ {
+- retval = conv->conv (1, (const struct pam_message **)pmsg,
+- &resp, conv->appdata_ptr);
++ if (conv->conv)
++ retval = conv->conv (1, (const struct pam_message **)pmsg,
++ &resp, conv->appdata_ptr);
+ if (retval != PAM_SUCCESS)
+ return retval;
+ }
--- pam-devperm-1.6.orig/debian/patches/new-autoconf-helpers.diff
+++ pam-devperm-1.6/debian/patches/new-autoconf-helpers.diff
@@ -0,0 +1,27 @@
+--- pam-devperm-1.6.orig/config.sub
++++ pam-devperm-1.6/config.sub
+@@ -3,7 +3,11 @@
+ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+ # Free Software Foundation, Inc.
+
++if [ -x /usr/share/misc/config.sub ] ; then
++ exec /usr/share/misc/config.sub $@
++fi
++
+ timestamp='2001-08-13'
+
+ # This file is (in principle) common to ALL GNU software.
+
+--- pam-devperm-1.6.orig/config.guess
++++ pam-devperm-1.6/config.guess
+@@ -3,6 +3,10 @@
+ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+ # Free Software Foundation, Inc.
+
++if [ -x /usr/share/misc/config.guess ] ; then
++ exec /usr/share/misc/config.guess $@
++fi
++
+ timestamp='2001-08-21'
+
+ # This file is free software; you can redistribute it and/or modify it