hg: bsd-port/bsd-port/jdk: . Try harder to make sure the flags returned from getFlags isn't negative,