Commits

Anonymous committed 783bd25

r2681@LENOVO-6D4C2336: sugawara | 2008-09-16 14:36:08 +0900

  • Participants
  • Parent commits 100814e

Comments (0)

Files changed (1)

ext/libtar/lib/append.c

 #include <fcntl.h>
 #include <sys/param.h>
 #include <sys/types.h>
+#include <time.h>
 
 #ifdef STDC_HEADERS
 # include <stdlib.h>
 	th_set_user(t, 0);
 	th_set_group(t, 0);
 	th_set_mode(t, 0644);
-	th_set_mtime(t, 0);
+	th_set_mtime(t, (int) time(NULL));
 	th_set_size(t, size);
 
 	/* set the header path */