diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-01-20 11:43:36 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-01-20 11:43:36 -0800 |
commit | 6e063d99a12beedde3ce1d4dc75c428d0ee7600e (patch) | |
tree | 85064a651979b91b36cc62ee3b17190fb6c3c5be /src | |
parent | 8592478d3bd1a021c0b51ace768b8ef944b13cf1 (diff) | |
download | elfutils-6e063d99a12beedde3ce1d4dc75c428d0ee7600e.tar.gz |
Grok -U as inverse of -D in ar and ranlib.
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 2 | ||||
-rw-r--r-- | src/arlib-argp.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 22212f9b..46c277ce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2012-01-20 Roland McGrath <roland@hack.frob.com> + * arlib-argp.c (options, parse_opt): Grok -U as inverse of -D. + * ranlib.c (argp): Use arlib_argp_children. * arlib.c (arlib_init): Obey arlib_deterministic_output. diff --git a/src/arlib-argp.c b/src/arlib-argp.c index af19a255..e143fbf1 100644 --- a/src/arlib-argp.c +++ b/src/arlib-argp.c @@ -35,6 +35,8 @@ static const struct argp_option options[] = { { NULL, 'D', NULL, 0, N_("Use zero for uid, gid, and date in archive members."), 0 }, + { NULL, 'U', NULL, 0, + N_("Use actual uid, gid, and date in archive members."), 0 }, { NULL, 0, NULL, 0, NULL, 0 } }; @@ -49,6 +51,10 @@ parse_opt (int key, char *arg __attribute__ ((unused)), arlib_deterministic_output = true; break; + case 'U': + arlib_deterministic_output = false; + break; + default: return ARGP_ERR_UNKNOWN; } |