freebsd-dev/usr.sbin/pkg_install
Dag-Erling Smørgrav 0f98df2956 Fix a long-standing bug where if the package being deleted had no
post-deinstall script, the variable intended to hold the name of that
script would be used uninitialized.  In some cases, fexists() would
succeed, causing pkg_delete to try to chmod +x it, then execute it,
resulting in bizarre error messages such as:

.//: Permission denied

This bug would normally only occur when multiple packages were
specified on the command line; otherwise post_script would be located
in a previously unused part of the stack, and implicitly (but quite
accidentally) initialized to all-zeros.

MFC after:	3 days
2003-02-25 15:01:54 +00:00
..
add Prevent buffer overflow in format_cmd() by properly tracking maximum 2003-01-06 07:39:02 +00:00
create english(4) police. 2002-12-27 12:15:40 +00:00
delete Fix a long-standing bug where if the package being deleted had no 2003-02-25 15:01:54 +00:00
info Back out rev 1.33; getbsize(3)'s original interface has been restored. 2002-12-30 18:16:26 +00:00
lib Prevent buffer overflow in format_cmd() by properly tracking maximum 2003-01-06 07:39:02 +00:00
sign Initialize sign to NULL so that we don't attempt to free() it in case 2003-02-20 20:13:07 +00:00
version Note that -c is no longer supported. This was requested by a few users and 2003-01-27 02:05:59 +00:00
Makefile Actually, the canonical way would be syntactically correct. 2003-01-09 12:04:21 +00:00
Makefile.inc Use some black make(1) magic to make pkg_install build even without 2002-02-27 19:03:15 +00:00
README
tkpkg Remove some $Log$ debris 1999-08-29 15:54:49 +00:00

This is the pkg_install suite of tools for doing maintainance of
software "packages".  More documentation is available in the man pages
for each individual command.

This code was written by Jordan Hubbard for FreeBSD, snatched and
mildly reshaped by John Kohl in NetBSD and the changes taken back into
FreeBSD again by Jordan, who then proceeded to add another couple
of dozen features on top.  Whee! :-)