From: Robert Spalek Date: Fri, 16 Jul 2004 10:12:33 +0000 (+0000) Subject: automatically add 0x80000000 to bucket-type specified on the command-line X-Git-Tag: holmes-import~943 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b43635d10f884732f466de394596b31d3779ea7c;p=libucw.git automatically add 0x80000000 to bucket-type specified on the command-line --- 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);