--- tar-1.25.orig/src/extract.c 2011-01-31 09:18:13 +0100 +++ tar-1.25/src/extract.c 2011-02-03 08:19:07 +0100 @@ -1002,11 +1002,13 @@ if (to_stdout_option) return 0; - if (! to_command_option) + if (! to_command_option) { + fsync(fd); set_stat (file_name, ¤t_stat_info, fd, current_mode, current_mode_mask, typeflag, false, (old_files_option == OVERWRITE_OLD_FILES ? 0 : AT_SYMLINK_NOFOLLOW)); + } status = close (fd); if (status < 0)