diff options
Diffstat (limited to 'editors/patch.c')
-rw-r--r-- | editors/patch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/patch.c b/editors/patch.c index a2d593d87..e0fb58f87 100644 --- a/editors/patch.c +++ b/editors/patch.c | |||
@@ -74,7 +74,7 @@ int patch_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
74 | int patch_level; | 74 | int patch_level; |
75 | int ret = 0; | 75 | int ret = 0; |
76 | 76 | ||
77 | xfunc_error_retval = 2; | 77 | xfunc_error_retval = 2; |
78 | { | 78 | { |
79 | const char *p = "-1"; | 79 | const char *p = "-1"; |
80 | const char *i = "-"; /* compat */ | 80 | const char *i = "-"; /* compat */ |
@@ -114,7 +114,7 @@ int patch_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
114 | if (!patch_line || strncmp(patch_line, "+++ ", 4) != 0) | 114 | if (!patch_line || strncmp(patch_line, "+++ ", 4) != 0) |
115 | bb_error_msg_and_die("invalid patch"); | 115 | bb_error_msg_and_die("invalid patch"); |
116 | new_filename = extract_filename_and_free_line(patch_line, patch_level); | 116 | new_filename = extract_filename_and_free_line(patch_line, patch_level); |
117 | 117 | ||
118 | /* Get access rights from the file to be patched, -1 file does not exist */ | 118 | /* Get access rights from the file to be patched, -1 file does not exist */ |
119 | if (stat(new_filename, &saved_stat) != 0) { | 119 | if (stat(new_filename, &saved_stat) != 0) { |
120 | char *line_ptr; | 120 | char *line_ptr; |