You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
- 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#include <system.h>
#include <quotearg.h>
if (stat (file_name, &st))
{
stat_warn (file_name);
- return true; /* Be on the safe side */
+ /* Be on the safe side: if the file does exist assume it is newer */
+ return errno != ENOENT;
}
if (!S_ISDIR (st.st_mode)
&& st.st_mtime >= tar_stat->stat.st_mtime)
{
if (multi_volume_option)
{
- assign_string (&save_name, current_stat_info.file_name);
+ assign_string (&save_name, current_stat_info.orig_file_name);
save_totsize = current_stat_info.stat.st_size;
save_sizeleft = size;
}
default:
WARN ((0, 0,
- _("%s: Unknown file type '%c', extracted as normal file"),
+ _("%s: Unknown file type `%c', extracted as normal file"),
quotearg_colon (file_name), typeflag));
*fun = extract_file;
}
case KEEP_NEWER_FILES:
if (file_newer_p (file_name, ¤t_stat_info))
{
- WARN ((0, 0, _("Current %s is newer"), quote (file_name)));
+ WARN ((0, 0, _("Current %s is newer or same age"),
+ quote (file_name)));
return 0;
}
break;