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 1Q8Lk7-0007ia-Qu for garchives@archives.gentoo.org; Sat, 09 Apr 2011 00:09:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 796E51C018; Sat, 9 Apr 2011 00:09:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 42D1A1C018 for ; Sat, 9 Apr 2011 00:09:22 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7EADF1B400C for ; Sat, 9 Apr 2011 00:09:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by flycatcher.gentoo.org (Postfix) with ESMTP id 13E3F20054 for ; Sat, 9 Apr 2011 00:09:20 +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: <71335be74f981fdfb3d1b3d473c85ffc5376912b.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: 71335be74f981fdfb3d1b3d473c85ffc5376912b Date: Sat, 9 Apr 2011 00:09:20 +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: 0f438e828796592b4acdfc5377b468ac commit: 71335be74f981fdfb3d1b3d473c85ffc5376912b Author: Robin H. Johnson gentoo org> AuthorDate: Sat Apr 9 00:09:13 2011 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sat Apr 9 00:09:13 2011 +0000 URL: http://sources.gentoo.org/gitweb/?p=3Dproj/elections.git;a=3D= commit;h=3D71335be7 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;