summaryrefslogtreecommitdiff
path: root/bin/ifuse-photos-to-tmp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-08-13 13:35:02 +0100
committerSean Whitton <spwhitton@spwhitton.name>2019-08-13 13:35:02 +0100
commit65a6d6d3fb51f00581ec8d64231af2b6c207b139 (patch)
tree1e2aa4276e35e0430f3ea159011583557d813ee4 /bin/ifuse-photos-to-tmp
parentb1367f99c7508f289e92740e967b0d38a1f1970b (diff)
downloaddotfiles-65a6d6d3fb51f00581ec8d64231af2b6c207b139.tar.gz
comment
Diffstat (limited to 'bin/ifuse-photos-to-tmp')
-rwxr-xr-xbin/ifuse-photos-to-tmp2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ifuse-photos-to-tmp b/bin/ifuse-photos-to-tmp
index 3efc1724..3bff5c06 100755
--- a/bin/ifuse-photos-to-tmp
+++ b/bin/ifuse-photos-to-tmp
@@ -52,6 +52,8 @@ unless (grep { /ifuse on $mount/ } `mount`) {
my $epoch = DateTime->new(year => 1970, month => 1, day => 1);
my $epoch_formatter = DateTime::Format::Epoch->new(epoch => $epoch, );
find(sub {
+ # defend against ImageInfo changing $_ (which obeys dynamic,
+ # not lexical, scoping rules)
my $file = $_;
# we handle any file, images or not, falling back to mtime if
# we can't extract EXIF data