Skip site navigation (1)Skip section navigation (2)
Date:      16 Aug 2000 09:51:05 -0000
From:      Peter Pentchev <roam@orbitel.bg>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/20643: /usr/bin/kzip is obsolete; remove it?
Message-ID:  <20000816095105.404.qmail@ringwraith.office1>

next in thread | raw e-mail | index | archive | help

>Number:         20643
>Category:       bin
>Synopsis:       /usr/bin/kzip is obsolete; remove it?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 16 05:10:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Peter Pentchev <roam@orbitel.bg>
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
Orbitel JSCo
>Environment:

RELENG_4; in fact, any 4.x FreeBSD system, unsure about recent 3.x

>Description:

In an ELF-based, ELF-kernel FreeBSD 4.x system, /usr/bin/kzip cannot
do anything meaningful, ever - AFAICS, it only works on a.out kernels.
We have /usr/sbin/kgzip now, which does the right thing.

I have classed this PR as a sw-bug, because there is a program in
the tree which absolutely fails to fulfill its purpose.  (My sincere
apologies and thanks to phk - kzip worked perfectly fine in the a.out
days :)

>How-To-Repeat:

[root@ringwraith ~]# kzip /kernel
real kernel start address will be: 0x1
real kernel end   address will be: 0x6eaac68a
kzip: bad magic in file /kernel, probably not a kernel
kzip: extract returned 200
[root@ringwraith ~]#

..as opposed to..

[root@ringwraith ~]# kgzip /kernel
[root@ringwraith ~]#

>Fix:

One of the following:
- remove /usr/bin/kzip from the build tree (possibly symlink
  /usr/sbin/kgzip to it);  or
- add a big red-letter warning to kzip's manpage that it cannot process
  ELF kernels;  and/or
- add a reference to kgzip in kzip's manpage.

(Sorry, my knowledge of troff is VERY poor, or I would have included patches
 for the latter two options.)

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000816095105.404.qmail>