Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/util-linux/acpid.c

    r3232 r3621  
    122122    const char *args[] = { "run-parts", handler, NULL };
    123123
    124     // debug info
    125     if (option_mask32 & OPT_d) {
    126         bb_error_msg("%s", event);
    127     }
     124    // log the event
     125    bb_error_msg("%s", event);
    128126
    129127    // spawn handler
     
    154152
    155153        if (buf) {
    156             if (strncmp(buf, evt_tab[i].desc, strlen(buf)) == 0) {
     154            if (is_prefixed_with(evt_tab[i].desc, buf)) {
    157155                action = evt_tab[i].desc;
    158156                break;
     
    257255         * This includes any output from children.
    258256         */
    259         xmove_fd(xopen(opt_logfile, O_WRONLY | O_CREAT | O_TRUNC), STDOUT_FILENO);
     257        xmove_fd(xopen(opt_logfile, O_WRONLY | O_CREAT | O_APPEND), STDOUT_FILENO);
    260258        xdup2(STDOUT_FILENO, STDERR_FILENO);
    261259        /* Also, acpid's messages (but not children) will go to syslog too */
Note: See TracChangeset for help on using the changeset viewer.