From b43635d10f884732f466de394596b31d3779ea7c Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Fri, 16 Jul 2004 10:12:33 +0000 Subject: [PATCH] automatically add 0x80000000 to bucket-type specified on the command-line --- lib/buckettool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/buckettool.c b/lib/buckettool.c index 2bac2c79..2b4ff592 100644 --- a/lib/buckettool.c +++ b/lib/buckettool.c @@ -156,6 +156,8 @@ insert(byte *arg) type = BUCKET_TYPE_PLAIN; else if (sscanf(arg, "%x", &type) != 1) die("Type `%s' is not a hexadecimal number"); + if (type < 10) + type += BUCKET_TYPE_PLAIN; attr_set_type(type); in = bfdopen_shared(0, 4096); -- 2.39.2