summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-12-30 01:51:23 +0100
committergregor herrmann <gregoa@debian.org>2020-12-30 01:51:23 +0100
commit091f082609c93fdd9368c77aa81b99303f12499c (patch)
tree51f351238e8cf888898f67a0eacd8978a0dd6df5
parente10c67bda7542937c330c082b7e48b002f53933d (diff)
Use "su -s /bin/sh nobody" to cope with the change of nobody's shell in base-passwd 3.5.30.
Bug-Debian: https://bugs.debian.org/734710 Reviewed-by: Axel Beckert <abe@debian.org> Last-Update: 2020-12-30 Gbp-Pq: Name nobody-vs-nologin.patch
-rw-r--r--lib/Sys/Hostname/Long.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sys/Hostname/Long.pm b/lib/Sys/Hostname/Long.pm
index 975afdb..7ec5d74 100644
--- a/lib/Sys/Hostname/Long.pm
+++ b/lib/Sys/Hostname/Long.pm
@@ -77,7 +77,7 @@ $VERSION = '1.5';
my $tmp;
if ( $^O ne 'darwin' ) {
if ($< == 0) {
- $tmp = `su nobody -c "hostname --fqdn"`;
+ $tmp = `su -s /bin/sh nobody -c "hostname --fqdn"`;
} else {
$tmp = `hostname --fqdn`;
}