diff options
author | des <des@FreeBSD.org> | 2003-02-25 15:01:54 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-02-25 15:01:54 +0000 |
commit | 8193b0d6a25349dc5c392eaabaa7f5707314edd2 (patch) | |
tree | f222f56e7d5756ebaa79f510feda6e3e5915ebe8 /sys/netipx | |
parent | 951fcfa2386ce765b364a819150fa48e20cd3d47 (diff) | |
download | FreeBSD-src-8193b0d6a25349dc5c392eaabaa7f5707314edd2.zip FreeBSD-src-8193b0d6a25349dc5c392eaabaa7f5707314edd2.tar.gz |
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
Diffstat (limited to 'sys/netipx')
0 files changed, 0 insertions, 0 deletions