diff options
author | 2022-06-30 15:36:10 -0700 | |
---|---|---|
committer | 2022-06-30 15:36:10 -0700 | |
commit | 9629cf285e461313b68438ecc4f6a25532c0c137 (patch) | |
tree | 12a8ac430a48f13fc55a26b5d4178dbef2805b32 /statify | |
parent | statify: fix chown (diff) | |
download | elections-9629cf285e461313b68438ecc4f6a25532c0c137.tar.gz elections-9629cf285e461313b68438ecc4f6a25532c0c137.tar.bz2 elections-9629cf285e461313b68438ecc4f6a25532c0c137.zip |
Votify: accept symlinks as well as files
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'statify')
-rwxr-xr-x | statify | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -86,9 +86,9 @@ for my $election_name (keys %open_elections) { my ($count_voters, $count_submit, $count_pending) = (0, 0,0); for my $votername (@voters) { $count_voters++; - if(-f catfile('/home', $votername, ".ballot-${election_name}-submitted")) { + if(-e catfile('/home', $votername, ".ballot-${election_name}-submitted")) { $count_submit++; - } elsif (-f catfile('/home', $votername, ".ballot-${election_name}")) { + } elsif (-e catfile('/home', $votername, ".ballot-${election_name}")) { $count_pending++; } } |