Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
s/strcmp/strcasecmp to check for yes/YES value :)
Baptiste Daroussin committed 14 years ago
commit edfbd671f8b498e052d4570f5f48910c8d16fe39
parent 32f02e4
2 files changed +2 -2
modified libpkg/pkg_delete.c
@@ -59,7 +59,7 @@ pkg_delete(struct pkg *pkg, struct pkgdb *db, int flags)
	 * and that the service is running
	 */
	handle_rc = pkg_config("HANDLE_RC_SCRIPTS");
-
	if (handle_rc && ((strcmp(handle_rc, "yes") == 0) || (strcmp(handle_rc, "YES") == 0)))
+
	if (handle_rc && (strcasecmp(handle_rc, "yes") == 0))
		pkg_stop_rc_scripts(pkg);

	if (flags & PKG_DELETE_UPGRADE) {
modified libpkg/pkgdb.c
@@ -1634,7 +1634,7 @@ pkgdb_register_pkg(struct pkgdb *db, struct pkg *pkg, int complete)
	 * and that the service is running
	 */
	handle_rc = pkg_config("HANDLE_RC_SCRIPTS");
-
	if (handle_rc && ((strcmp(handle_rc, "yes") == 0) || (strcmp(handle_rc, "YES") == 0)))
+
	if (handle_rc && (strcasecmp(handle_rc, "yes") == 0))
		pkg_start_rc_scripts(pkg);

	return (retcode);