CVSROOT: /cvs Module name: src Changes by: [email protected] 2022/10/25 18:40:41
Modified files:
usr.bin/compress: main.c
Log message:
compress: fix minor TOCTOU when checking for existing file
Use open(2) + fstat(2) instead of stat(2) + open(2). The file open
code has been moved into its own functions so it can be shared
between docompress() and dodecompress().
