Skip to content

Commit ad33906

Browse files
committed
ensure getpwuid is called in scalar context in run as attr decl
1 parent a6c2fb2 commit ad33906

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Hadoop/HDFS/Command.pm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package Hadoop::HDFS::Command;
33
use 5.010;
44
use strict;
55
use warnings;
6-
76
use Capture::Tiny ();
87
use Carp ();
98
use Data::Dumper;
@@ -37,10 +36,10 @@ has enable_log => (
3736
lazy => 1,
3837
);
3938

40-
has 'runas' => (
39+
has runas => (
4140
is => 'rw',
4241
isa => Str,
43-
default => getpwuid $<,
42+
default => scalar getpwuid $<,
4443
lazy => 1,
4544
);
4645

0 commit comments

Comments
 (0)