Skip to content

setting silent=true causes it to be non-silent #7

Description

@dirkmueller

if (strcmp(val, "1") == 0 || strcasecmp(val, "on") == 0 || strcasecmp(val, "yes") == 0 || strcasecmp(val, "true"))

all the strcasecmp() are correctly comparing against == 0, except for true.

  • Because strcasecmp returns non-zero on mismatch, the condition evaluates to true for any string other than "true" (such as "0", "false", or "off"), and evaluates to false when the value is exactly "true".
  • This inverses the intended boot configuration behavior for blog.silent and blog.coldboot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions