Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/procps/pgrep.c


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/procps/pgrep.c

    r3232 r3621  
    6666    if (pgrep) {
    6767        if (option_mask32 & (1 << OPTBIT_L)) /* OPT_LIST */
    68             printf("%d %s\n", pid, cmd);
     68            printf("%u %s\n", pid, cmd);
    6969        else
    70             printf("%d\n", pid);
     70            printf("%u\n", pid);
    7171    } else
    7272        kill(pid, signo);
     
    129129
    130130    if (argv[0])
    131         xregcomp(&re_buffer, argv[0], REG_EXTENDED | REG_NOSUB);
     131        xregcomp(&re_buffer, argv[0], OPT_ANCHOR ? REG_EXTENDED : (REG_EXTENDED|REG_NOSUB));
    132132
    133133    matched_pid = 0;
Note: See TracChangeset for help on using the changeset viewer.