[libsys-hostname-long-perl] 01/02: Use "su -s /bin/sh nobody" to cope with the change of nobody's shell
Axel Beckert
abe at deuxchevaux.org
Fri Jan 10 00:26:17 UTC 2014
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository libsys-hostname-long-perl.
commit 94620346e2619e180f9b8e47f443e73a7e37619e
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Fri Jan 10 01:25:15 2014 +0100
Use "su -s /bin/sh nobody" to cope with the change of nobody's shell
... in base-passwd 3.5.30.
Closes: #734710
Patch by Colin Watson.
---
debian/changelog | 2 ++
debian/patches/nobody-vs-nologin.patch | 17 +++++++++++++++++
debian/patches/series | 1 +
3 files changed, 20 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 2cc6d97..a4ae669 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,6 +28,8 @@ libsys-hostname-long-perl (1.4-3) UNRELEASED; urgency=low
[ Axel Beckert ]
* debian/copyright: migrate pre-1.0 format to 1.0 using "cme fix dpkg-
copyright"
+ * Use "su -s /bin/sh nobody" to cope with the change of nobody's shell in
+ base-passwd 3.5.30. (Closes: #734710) Patch by Colin Watson.
-- Fabrizio Regalli <fabreg at fabreg.it> Mon, 13 Jun 2011 11:11:48 +0200
diff --git a/debian/patches/nobody-vs-nologin.patch b/debian/patches/nobody-vs-nologin.patch
new file mode 100644
index 0000000..85a20a6
--- /dev/null
+++ b/debian/patches/nobody-vs-nologin.patch
@@ -0,0 +1,17 @@
+Description: Use "su -s /bin/sh nobody" to cope with the change of nobody's shell in base-passwd 3.5.30.
+Author: Colin Watson <cjwatson at debian.org>
+Bug-Debian: http://bugs.debian.org/734710
+
+Index: libsys-hostname-long-perl/lib/Sys/Hostname/Long.pm
+===================================================================
+--- libsys-hostname-long-perl.orig/lib/Sys/Hostname/Long.pm 2014-01-10 01:11:28.759504943 +0100
++++ libsys-hostname-long-perl/lib/Sys/Hostname/Long.pm 2014-01-10 01:15:34.340185522 +0100
+@@ -75,7 +75,7 @@
+ # Skip for Solaris, and only run as non-root
+ my $tmp;
+ if ($< == 0) {
+- $tmp = `su nobody -c "hostname --fqdn"`;
++ $tmp = `su -s /bin/sh nobody -c "hostname --fqdn"`;
+ } else {
+ $tmp = `hostname --fqdn`;
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..186fd0f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+nobody-vs-nologin.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libsys-hostname-long-perl.git
More information about the Pkg-perl-cvs-commits
mailing list