Further up we add O_PATH manually. Initial development versions of
this code did set the is_pathref, but then I found this potential
problem. I forgot to remove this incarnation of is_pathref=true, doing
it now.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
#ifdef O_PATH
/*
* Add O_PATH manually, doing this by setting
- * fsp->fsp_flags.is_pathref will make us become_root(), which
- * would cause a security problem.
+ * fsp->fsp_flags.is_pathref will make us become_root() in the
+ * non-O_PATH case, which would cause a security problem.
*/
flags |= O_PATH;
#else
nt_errstr(status));
goto fail;
}
- fsp->fsp_flags.is_pathref = true;
fsp->fsp_name = &full_fname;
} else {
fsp = tmp;