Skip to content
  • Craig Small's avatar
    sysctl: Don't crash file fopen fails · 8882afa0
    Craig Small authored
    The commit referenced below put a setvbuf() before checking what
    fopen() returned. If the file could not be opened then the file
    handle was NULL at setvbuf() crashed.
    
    setvbuf() is now called after checking what fopen() returns and only
    when it was successful.
    
    References:
     procps-ng/procps#76
     commit 58ae084c
    8882afa0
To find the state of this project's repository at the time of any of these versions, check out the tags.