diff options
Diffstat (limited to 'src/ar.c')
| -rw-r--r-- | src/ar.c | 29 |
1 files changed, 1 insertions, 28 deletions
@@ -462,16 +462,6 @@ do_oper_extract (int oper, const char *arfname, char **argv, int argc, size_t name_max = 0; inline bool should_truncate_fname (void) { - if (errno == ENAMETOOLONG && allow_truncate_fname) - { - if (name_max == 0) - { - long int len = pathconf (".", _PC_NAME_MAX); - if (len > 0) - name_max = len; - } - return name_max != 0; - } return false; } @@ -550,7 +540,7 @@ do_oper_extract (int oper, const char *arfname, char **argv, int argc, else if (oper == oper_list) { char datestr[100]; - strftime (datestr, sizeof (datestr), "%b %e %H:%M %Y", + strftime (datestr, sizeof (datestr), "%b %d %H:%M %Y", localtime (&arhdr->ar_date)); printf ("%c%c%c%c%c%c%c%c%c %u/%u %6ju %s %s\n", @@ -675,23 +665,6 @@ do_oper_extract (int oper, const char *arfname, char **argv, int argc, } #endif - if (preserve_dates) - { - struct timespec tv[2]; - tv[0].tv_sec = arhdr->ar_date; - tv[0].tv_nsec = 0; - tv[1].tv_sec = arhdr->ar_date; - tv[1].tv_nsec = 0; - - if (unlikely (futimens (xfd, tv) != 0)) - { - error (0, errno, - gettext ("cannot change modification time of %s"), - arhdr->ar_name); - status = 1; - } - } - /* If we used a temporary file, move it do the right name now. */ if (use_mkstemp) |
