New comment by loreb on void-packages repository https://github.com/void-linux/void-packages/pull/30567#issuecomment-842312800 Comment: After 10 days with no answer on the mailing list, since this only requires a single function to copy one file, how about shelling out to /bin/cp? eg ``` #include #include #include #include static int qcopy_file_preserving(const char *src, const char *dst) { int stat_loc; pid_t pid = fork(); if (pid < 0) { perror("fork"); return -1; } if (pid == 0) { execl("/bin/cp", "--", src, dst, (void *)0); exit(1); } if (pid != waitpid(pid, &stat_loc, 0)) { perror("waitpid"); return -1; } if (!(WIFEXITED(stat_loc) && WEXITSTATUS(stat_loc) == 0)) { return -1; } return 0; } ``` should work fine until upstream makes a new release, right?