X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Ftar.c;h=21c396d56601ca0c0ed9e2edd497a457bea14610;hb=c79f0d06bc0ff617f4785874e366240f441eeb92;hp=e3fdf7bcfa7f837d4ecb7cd87d20288c7f688a22;hpb=3f4a6d83f09787a305e7cdaf6f08d6695cd9f9de;p=chaz%2Ftar diff --git a/src/tar.c b/src/tar.c index e3fdf7b..21c396d 100644 --- a/src/tar.c +++ b/src/tar.c @@ -274,6 +274,7 @@ enum EXCLUDE_TAG_ALL_OPTION, EXCLUDE_VCS_OPTION, FORCE_LOCAL_OPTION, + FULL_TIME_OPTION, GROUP_OPTION, IGNORE_CASE_OPTION, IGNORE_COMMAND_ERROR_OPTION, @@ -752,7 +753,9 @@ static struct argp_option options[] = { "Allowed signals are: SIGHUP, SIGQUIT, SIGINT, SIGUSR1 and SIGUSR2; " "the names without SIG prefix are also accepted"), GRID+1 }, {"utc", UTC_OPTION, 0, 0, - N_("print file modification dates in UTC"), GRID+1 }, + N_("print file modification times in UTC"), GRID+1 }, + {"full-time", FULL_TIME_OPTION, 0, 0, + N_("print file time to its full resolution"), GRID+1 }, {"index-file", INDEX_FILE_OPTION, N_("FILE"), 0, N_("send verbose output to FILE"), GRID+1 }, {"block-number", 'R', 0, 0, @@ -1437,6 +1440,10 @@ parse_opt (int key, char *arg, struct argp_state *state) info_script_option = arg; multi_volume_option = true; break; + + case FULL_TIME_OPTION: + full_time_option = true; + break; case 'g': listed_incremental_option = arg; @@ -2570,8 +2577,6 @@ main (int argc, char **argv) obstack_init (&argv_stk); - /* Ensure default behavior for some signals */ - signal (SIGPIPE, SIG_IGN); /* System V fork+wait does not work if SIGCHLD is ignored. */ signal (SIGCHLD, SIG_DFL);