aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-04-09 00:09:13 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2011-04-09 00:09:13 +0000
commit71335be74f981fdfb3d1b3d473c85ffc5376912b (patch)
tree09366bb6601b79e6e240e56bd86496f3629e6722 /Votify.pm
parentOpfer renamed to fauli a long time ago, somewhere a mater list is wrong. (diff)
downloadelections-71335be74f981fdfb3d1b3d473c85ffc5376912b.tar.gz
elections-71335be74f981fdfb3d1b3d473c85ffc5376912b.tar.bz2
elections-71335be74f981fdfb3d1b3d473c85ffc5376912b.zip
Fix Votify.pm better to take mail-in ballots.
Diffstat (limited to 'Votify.pm')
-rw-r--r--Votify.pm9
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 {
}
@pwentry = getpwnam($v);
- unless (@pwentry) {
- print STDERR "Warning: unknown user: $v\n";
- next;
+ if(@pwentry) {
+ $home = $pwentry[7];
+ } else {
+ print STDERR "Warning: Assuming /home/$v/ for unknown user: $v\n";
+ $home = sprintf '/home/%s/',$v;
}
- $home = $pwentry[7];
unless (-d $home) {
print STDERR "Warning: no directory: $home\n";
next;