diff options
-rw-r--r-- | tools/objtool/builtin-check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/builtin-check.c b/tools/objtool/builtin-check.c index 39ddca64cb58..5f761f420b8c 100644 --- a/tools/objtool/builtin-check.c +++ b/tools/objtool/builtin-check.c @@ -198,7 +198,7 @@ static int copy_file(const char *src, const char *dst) return 1; } - dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC); + dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, 0400); if (dst_fd == -1) { ERROR("can't open '%s' for writing", dst); return 1; |