diff options
author | pjd <pjd@FreeBSD.org> | 2013-03-02 09:58:47 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2013-03-02 09:58:47 +0000 |
commit | 73650b4f3af1f7c8b2448569209fcdff427c08db (patch) | |
tree | ed319d846a836186fac46278b94b45c60866038d /sys/fs/nullfs | |
parent | f77596bc521b671974f181500d0c32e3836d24ab (diff) | |
download | FreeBSD-src-73650b4f3af1f7c8b2448569209fcdff427c08db.zip FreeBSD-src-73650b4f3af1f7c8b2448569209fcdff427c08db.tar.gz |
If the target file already exists, check for the CAP_UNLINKAT capabiity right
on the target directory descriptor, but only if this is renameat(2) and real
target directory descriptor is given (not AT_FDCWD). Without this fix regular
rename(2) fails if the target file already exists.
Reported by: Michael Butler <imb@protected-networks.net>
Reported by: Larry Rosenman <ler@lerctr.org>
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/fs/nullfs')
0 files changed, 0 insertions, 0 deletions