diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2011-04-09 00:09:13 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2011-04-09 00:09:13 +0000 |
commit | 71335be74f981fdfb3d1b3d473c85ffc5376912b (patch) | |
tree | 09366bb6601b79e6e240e56bd86496f3629e6722 /Votify.pm | |
parent | Opfer renamed to fauli a long time ago, somewhere a mater list is wrong. (diff) | |
download | elections-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.pm | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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; |