aboutsummaryrefslogtreecommitdiff
path: root/dups
diff options
context:
space:
mode:
authorGuillermo Ramos2025-09-07 10:13:50 +0200
committerGuillermo Ramos2025-09-07 10:13:50 +0200
commit3317c7378c687f43dd099b1b052d0124a1e90622 (patch)
tree468d500415674a28558cef7c0f8fb82abe1de592 /dups
parentc02e37c869cff3939bf191c46c06a8db857d7e9d (diff)
downloadcli-3317c7378c687f43dd099b1b052d0124a1e90622.tar.gz
dups: fix stat handling of files with dashes
Diffstat (limited to 'dups')
-rwxr-xr-xdups2
1 files changed, 1 insertions, 1 deletions
diff --git a/dups b/dups
index 58aae1c..26721d2 100755
--- a/dups
+++ b/dups
@@ -30,7 +30,7 @@ sub register_file_size {
return if -d "$_"; # Skip directories
my $filename = $File::Find::name;
- my $size = capture("stat", "--printf=%s", $_);
+ my $size = capture("stat", "--printf=%s", "--", $_);
$sizes{$size} ||= [];
push @{$sizes{$size}}, $filename;
}