summaryrefslogtreecommitdiff
path: root/src/patch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/patch.c')
-rw-r--r--src/patch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patch.c b/src/patch.c
index 64f4391..2c51f44 100644
--- a/src/patch.c
+++ b/src/patch.c
@@ -543,7 +543,7 @@ main (int argc, char **argv)
enum file_attributes attr = 0;
struct timespec new_time = pch_timestamp (! reverse);
mode_t mode = file_type |
- ((new_mode ? new_mode : instat.st_mode) & S_IRWXUGO);
+ ((set_mode ? new_mode : instat.st_mode) & S_IRWXUGO);
if ((set_time | set_utc) && new_time.tv_sec != -1)
{