]> granicus.if.org Git - sudo/commit
Repair symlink check in sudo_edit_openat_nofollow() on systems
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 25 Jul 2016 16:41:33 +0000 (10:41 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 25 Jul 2016 16:41:33 +0000 (10:41 -0600)
commitcc31c2b2414548fc16f752b16204d3ad845b55c4
treeed82caaaa2373443e70cef5954eb1e41873d8e52
parentbf82b3f2ba37e3c8d02abb10cdf02727c94d188a
Repair symlink check in sudo_edit_openat_nofollow() on systems
without O_NOFOLLOW, it must be done relative to dfd.  Previously
the lstat() would always fail, possibly leading to a false positive.
Also add an early symlink check like in sudo_edit() while here.
src/sudo_edit.c