From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QYXju-0005or-DQ for garchives@archives.gentoo.org; Mon, 20 Jun 2011 06:13:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C14131C051; Mon, 20 Jun 2011 06:13:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 936571C051 for ; Mon, 20 Jun 2011 06:13:30 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D3F672AC015 for ; Mon, 20 Jun 2011 06:13:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by flycatcher.gentoo.org (Postfix) with ESMTP id 5E97920054 for ; Mon, 20 Jun 2011 06:13:28 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <9f1c231ef4aa654d47efbc921c8c03148ceefc26.robbat2@gentoo> Subject: [gentoo-commits] proj/elections:master commit in: / X-VCS-Repository: proj/elections X-VCS-Files: Votify.pm X-VCS-Directories: / X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 9f1c231ef4aa654d47efbc921c8c03148ceefc26 Date: Mon, 20 Jun 2011 06:13:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: ff92cc36d0e1ddf4bb4678df4000e64b commit: 9f1c231ef4aa654d47efbc921c8c03148ceefc26 Author: root woodpecker gentoo org> AuthorDate: Sat Apr 9 00:07:47 2011 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sat Apr 9 00:07:47 2011 +0000 URL: http://sources.gentoo.org/gitweb/?p=3Dproj/elections.git;a=3D= commit;h=3D9f1c231e Fix Votify.pm better to take mail-in ballots. --- Votify.pm | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Votify.pm b/Votify.pm index 73bc287..c99685d 100644 --- a/Votify.pm +++ b/Votify.pm @@ -157,12 +157,13 @@ sub collect { } =20 @pwentry =3D getpwnam($v); - unless (@pwentry) { - print STDERR "Warning: unknown user: $v\n"; - next; + if(@pwentry) { + $home =3D $pwentry[7]; + } else { + print STDERR "Warning: Assuming /home/$v/ for unknown user: = $v\n"; + $home =3D sprintf '/home/%s/',$v; } =20 - $home =3D $pwentry[7]; unless (-d $home) { print STDERR "Warning: no directory: $home\n"; next;