aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ii/templates/ii_wrapper.pl
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-22 23:40:39 +0000
committerMichael Scherer <misc@mageia.org>2012-01-22 23:40:39 +0000
commit2e70835d6b76d296963cf8349ba01e9f25369ff4 (patch)
tree8a45deadc0500f1816a36d6f588a699b7cb83987 /modules/ii/templates/ii_wrapper.pl
parent737b886be3780749d28d10c720d88ed084824085 (diff)
downloadpuppet-2e70835d6b76d296963cf8349ba01e9f25369ff4.tar
puppet-2e70835d6b76d296963cf8349ba01e9f25369ff4.tar.gz
puppet-2e70835d6b76d296963cf8349ba01e9f25369ff4.tar.bz2
puppet-2e70835d6b76d296963cf8349ba01e9f25369ff4.tar.xz
puppet-2e70835d6b76d296963cf8349ba01e9f25369ff4.zip
fix function call
Diffstat (limited to 'modules/ii/templates/ii_wrapper.pl')
-rw-r--r--modules/ii/templates/ii_wrapper.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ii/templates/ii_wrapper.pl b/modules/ii/templates/ii_wrapper.pl
index fddfd629..5e5cc65e 100644
--- a/modules/ii/templates/ii_wrapper.pl
+++ b/modules/ii/templates/ii_wrapper.pl
@@ -8,7 +8,7 @@ my $server = "<%= server %>";
Proc::Daemon::Init();
-my (undef, undef, $uid) = getpwname("nobody");
+my (undef, undef, $uid) = getpwnam("nobody");
POSIX::setuid($uid);
fork() || exec "ii -n $nick -i /var/lib/ii/$nick -s $server";