diff --git a/lib/Foswiki/Contrib/PasswdUserContrib.pm b/lib/Foswiki/Contrib/PasswdUserContrib.pm index 0bcf4e0..de7a950 100644 --- a/lib/Foswiki/Contrib/PasswdUserContrib.pm +++ b/lib/Foswiki/Contrib/PasswdUserContrib.pm @@ -15,7 +15,7 @@ package Foswiki::Contrib::PasswdUserContrib; use strict; -our $VERSION = '$Rev$'; # version of *this file*. +our $VERSION = '$Rev$'; # version of *this file*. our $RELEASE = '1.0.0'; our $SHORTDESCRIPTION = 'Use getpwnam to get passwords from /etc/passwd'; diff --git a/lib/Foswiki/Contrib/PasswdUserContrib/build.pl b/lib/Foswiki/Contrib/PasswdUserContrib/build.pl index afc8e4e..5c24e84 100755 --- a/lib/Foswiki/Contrib/PasswdUserContrib/build.pl +++ b/lib/Foswiki/Contrib/PasswdUserContrib/build.pl @@ -12,13 +12,16 @@ # name of web to upload to $build->{UPLOADTARGETWEB} = 'Extensions'; + # Full URL of pub directory $build->{UPLOADTARGETPUB} = 'http://foswiki.org/pub'; + # Full URL of bin directory $build->{UPLOADTARGETSCRIPT} = 'http://foswiki.org/bin'; + # Script extension $build->{UPLOADTARGETSUFFIX} = ''; # Build the target on the command line, or the default target -$build->build($build->{target}); +$build->build( $build->{target} ); diff --git a/lib/Foswiki/Users/PasswdUser.pm b/lib/Foswiki/Users/PasswdUser.pm index fa2ee9d..edfed86 100644 --- a/lib/Foswiki/Users/PasswdUser.pm +++ b/lib/Foswiki/Users/PasswdUser.pm @@ -61,9 +61,7 @@ sub canFetchUsers { my $class = shift; setpwent(); my ($first) = getpwent(); - return bless({ - next => $first, - }, $class); + return bless( { next => $first, }, $class ); } sub hasNext { @@ -72,9 +70,9 @@ sub canFetchUsers { } sub next { - my $this = shift; + my $this = shift; my $entry = $this->{next}; - ($this->{next}) = getpwent(); + ( $this->{next} ) = getpwent(); endpwent() unless $this->{next}; return $entry; } @@ -88,7 +86,7 @@ sub fetchPass { my ( $this, $login ) = @_; if ($login) { - my ($user, $passwd) = getpwnam($login); + my ( $user, $passwd ) = getpwnam($login); return $passwd; } $this->{error} = 'No user';