Home
last modified time | relevance | path

Searched refs:tofd (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/tools/perf/util/
H A Dcopyfile.c76 int fromfd, tofd; in copyfile_mode_ns() local
100 tofd = mkstemp(tmp); in copyfile_mode_ns()
101 if (tofd < 0) in copyfile_mode_ns()
106 if (!err && fchmod(tofd, mode)) in copyfile_mode_ns()
111 if (fchmod(tofd, mode)) in copyfile_mode_ns()
120 err = copyfile_offset(fromfd, 0, tofd, 0, st.st_size); in copyfile_mode_ns()
124 close(tofd); in copyfile_mode_ns()
/openbmc/openbmc/poky/meta/recipes-devtools/patch/patch/
H A DCVE-2019-13636.patch75 copy_to_fd (const char *from, int tofd)
94 tofd = create_file (to, O_WRONLY | O_BINARY | to_flags, mode,
96 copy_to_fd (from, tofd);
102 int tofd;
104 - if ((tofd = safe_open (to, O_WRONLY | O_BINARY | O_APPEND, 0)) < 0)
107 + if ((tofd = safe_open (to, to_flags, 0)) < 0)
109 copy_to_fd (from, tofd);
110 if (close (tofd) != 0)