summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-01-14 02:55:09 +0000
committerguenther <guenther@openbsd.org>2014-01-14 02:55:09 +0000
commit007bef9e1fb7cdc0d7095b5d0fae0c21410c9cee (patch)
tree26700b3548d8b800f2c9e02ac0a4623a79185605 /sys/kern/subr_hibernate.c
parentgetnstr() returns KEY_RESIZE if there was a pending resize event, so loop (diff)
downloadwireguard-openbsd-007bef9e1fb7cdc0d7095b5d0fae0c21410c9cee.tar.xz
wireguard-openbsd-007bef9e1fb7cdc0d7095b5d0fae0c21410c9cee.zip
No exception is made for symlinks in the spec, so use
fchmodat(AT_SYMLINK_NOFOLLOW) to set the mode on symlinks, pass AT_SYMLINK_NOFOLLOW to utimensat(), and then let those be called on symlinks by dropping the test that skipped them. Eliminate set_lids() by changing set_ids() to use fchownat(AT_SYMLINK_NOFOLLOW) and delete a redundant conditional in each of set_ftime()/fset_ftime(). suggested by espie@ ok millert@
Diffstat (limited to 'sys/kern/subr_hibernate.c')
0 files changed, 0 insertions, 0 deletions