Interestingly, sed is happy to ignore failures on fchown itself:
$ grep chown sed/execute.c -B4 -A2
output_fd = fileno (output_file.fp);
#ifdef HAVE_FCHOWN
/* Try to set both UID and GID, but if that fails,
try to set only the GID. Ignore failure. */
if (fchown (output_fd, input->st.st_uid, input->st.st_gid) == -1) ignore_value (fchown (output_fd, -1, input->st.st_gid));
#endif
copy_acl (input->in_file_name, input_fd,
Interestingly, sed is happy to ignore failures on fchown itself:
$ grep chown sed/execute.c -B4 -A2
ignore_ value (fchown (output_fd, -1, input->st.st_gid)); >in_file_ name, input_fd,
output_fd = fileno (output_file.fp);
#ifdef HAVE_FCHOWN
/* Try to set both UID and GID, but if that fails,
try to set only the GID. Ignore failure. */
if (fchown (output_fd, input->st.st_uid, input->st.st_gid) == -1)
#endif
copy_acl (input-