Date: Tue, 25 Feb 2003 07:01:54 -0800 (PST) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/pkg_install/delete Makefile perform.c Message-ID: <200302251501.h1PF1sYW088215@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
des 2003/02/25 07:01:54 PST
Modified files:
usr.sbin/pkg_install/delete Makefile perform.c
Log:
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
Revision Changes Path
1.18 +1 -1 src/usr.sbin/pkg_install/delete/Makefile
1.38 +11 -13 src/usr.sbin/pkg_install/delete/perform.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302251501.h1PF1sYW088215>
