CVSROOT: /cvs Module name: src Changes by: chel...@cvs.openbsd.org 2022/01/28 17:06:26
Modified files: usr.bin/touch : touch.c Log message: touch(1): don't leak file descriptor if futimens(2) fails This conditional chain short-circuits if futimens(2) fails, leaving the file descriptor open. We need to evaluate each system call in the chain separately to ensure we attempt to close(2) the descriptor. With input from guenther@ and millert@. Thread: https://marc.info/?l=openbsd-tech&m=164332809900558&w=2 ok millert@, probably ok guenther@