Edit

IABSD.fr/src/usr.bin/touch

Branch :

  • Show log

    Commit

  • Author : cheloha
    Date : 2022-01-29 00:06:26
    Hash : b873219f
    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@