version 1.74, 2020/04/07 09:40:09 |
version 1.75, 2021/10/24 21:24:18 |
|
|
} |
} |
|
|
if (!devnull) { |
if (!devnull) { |
if ((from_fd = open(from_name, O_RDONLY, 0)) == -1) |
if ((from_fd = open(from_name, O_RDONLY)) == -1) |
err(1, "%s", from_name); |
err(1, "%s", from_name); |
} |
} |
|
|
|
|
* that does not work in-place -- like gnu binutils strip. |
* that does not work in-place -- like gnu binutils strip. |
*/ |
*/ |
close(to_fd); |
close(to_fd); |
if ((to_fd = open(tempfile, O_RDONLY, 0)) == -1) |
if ((to_fd = open(tempfile, O_RDONLY)) == -1) |
err(1, "stripping %s", to_name); |
err(1, "stripping %s", to_name); |
} |
} |
|
|
|
|
struct stat temp_sb; |
struct stat temp_sb; |
|
|
/* Re-open to_fd using the real target name. */ |
/* Re-open to_fd using the real target name. */ |
if ((to_fd = open(to_name, O_RDONLY, 0)) == -1) |
if ((to_fd = open(to_name, O_RDONLY)) == -1) |
err(1, "%s", to_name); |
err(1, "%s", to_name); |
|
|
if (fstat(temp_fd, &temp_sb)) { |
if (fstat(temp_fd, &temp_sb)) { |