diff --git a/builtin-apply.c b/builtin-apply.c
index 54fd2cb0c71dc97a47d0286d7b201545a7308b01..abe35387156cf2774c8bc619d74b93c5e83285a8 100644 (file)
--- a/builtin-apply.c
+++ b/builtin-apply.c
return error("%s: %s", old_name, strerror(errno));
if (!cached)
- st_mode = ntohl(create_ce_mode(st.st_mode));
+ st_mode = ntohl(ce_mode_from_stat(ce, st.st_mode));
if (patch->is_new < 0)
patch->is_new = 0;
}
-int cmd_apply(int argc, const char **argv, const char *prefix)
+int cmd_apply(int argc, const char **argv, const char *unused_prefix)
{
int i;
int read_stdin = 1;