Skip to content
  • Eric Blake's avatar
    popen-safer: prevent popen from clobbering std descriptors · ccb9c679
    Eric Blake authored
    
    
    * modules/popen-safer: New file.
    * lib/popen-safer.c: Likewise.
    * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
    * lib/stdio--.h (popen): Provide override.
    * lib/stdio-safer.h (popen_safer): Provide declaration.
    * tests/test-popen.c (includes): Partially test this.
    * modules/popen-safer-tests: New file, for more tests.
    * tests/test-popen-safer.c: Likewise.
    * MODULES.html.sh (file stream based Input/Output): Mention it.
    
    Signed-off-by: default avatarEric Blake <ebb9@byu.net>
    ccb9c679
To find the state of this project's repository at the time of any of these versions, check out the tags.