[Midnightbsd-cvs] src: delete_primative.c: What a weird bug.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Nov 10 13:03:17 EST 2010
Log Message:
-----------
What a weird bug. apparently some plists have @mode or @group commands with no arguments. This is supposed to "reset" to the default state. libmport can't handle this right now though.
As a workaround, i have added a case to check for data being null. That means the argument is missing
@mode vs @mode 644 where data is 644 as stored in sqlite.
This allows us to uninstall phpMyAdmin.
The next question is what to do about this case. I think a default mode should be defined for installing files and directories for ports in libmport and we should die on weird edge cases for plists. I don't think the package should have been created like this.
Modified Files:
--------------
src/lib/libmport:
delete_primative.c (r1.7 -> r1.8)
(http://cvsweb.midnightbsd.org/src/lib/libmport/delete_primative.c?r1=1.7&r2=1.8)
More information about the Midnightbsd-cvs
mailing list