CVSROOT: /cvs Module name: src Changes by: [email protected] 2021/05/17 05:49:01
Modified files:
usr.bin/rsync : uploader.c
Log message:
The openat() then fstat() pattern only works if one is sure the file being
opened is a regular file. In other cases this may block in openat() (since
the O_NONBLOCK flag removed). Switch to fstatat() and then openat() to
protect from involuntary side-effects (like opening a device node) and
possible hangs.
OK benno@
