Searched refs:tofd (Results 1 – 3 of 3) sorted by relevance
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | copyfile.c | 76 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()
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/patch/patch/ |
| H A D | CVE-2019-13636.patch | 75 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)
|
| /OK3568_Linux_fs/buildroot/package/patch/ |
| H A D | 0005-Don-t-follow-symlinks-unless--follow-symlinks-is-given.patch | 73 copy_to_fd (const char *from, int tofd) 92 tofd = create_file (to, O_WRONLY | O_BINARY | to_flags, mode, 94 copy_to_fd (from, tofd); 100 int tofd; 102 - if ((tofd = safe_open (to, O_WRONLY | O_BINARY | O_APPEND, 0)) < 0) 105 + if ((tofd = safe_open (to, to_flags, 0)) < 0) 107 copy_to_fd (from, tofd); 108 if (close (tofd) != 0)
|