Skip to content

Commit ebf7f9f

Browse files
committed
Fix chmod argument bug
1 parent 41f597f commit ebf7f9f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919

2020
### Fixed
2121

22+
- Fixed incorrect argument handling for the code that tries to preserve file
23+
permission.
24+
2225
### Security
2326

2427
## [0.1.0] - 2022-05-12

git-resolve-conflict-using-kdiff3.pl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ sub get_filemode {
187187
my $file = shift;
188188
# Reference "oct" in in perlfunc
189189
my $dec_perms = (stat($file))[2] & 07777;
190-
my $oct_perm_str = sprintf "%o", $dec_perms;
191-
return $oct_perm_str;
190+
return $dec_perms;
192191
}
193192

194193
################################################################################

0 commit comments

Comments
 (0)