]> granicus.if.org Git - sudo/commitdiff
Add missing dfd argument to the version of sudo_edit_openat_nofollow()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 11 Jan 2016 23:36:40 +0000 (16:36 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 11 Jan 2016 23:36:40 +0000 (16:36 -0700)
for systems without O_NOFOLLOW.

src/sudo_edit.c

index c09d793544338a94506c50e7a45c9a4548b6ade7..cc6476fa969c7f0efd795b6696b01d7e09575d37 100644 (file)
@@ -247,7 +247,7 @@ sudo_edit_is_symlink(int fd, char *path)
 }
 
 static int
-sudo_edit_openat_nofollow(char *path, int oflags, mode_t mode)
+sudo_edit_openat_nofollow(int dfd, char *path, int oflags, mode_t mode)
 {
     struct stat sb1, sb2;
     int fd;