SMB_ASSERT(NT_STATUS_IS_OK(status));
DBG_DEBUG("added fd %d file %s\n",
- fsp->fh->fd,
+ fsp_get_pathref_fd(fsp),
fsp_str_dbg(fsp));
}
result = SMB_VFS_NEXT_CLOSE(handle, fsp);
syslog(audit_syslog_priority(handle), "close fd %d %s%s\n",
- fsp->fh->fd,
+ fsp_get_pathref_fd(fsp),
(result < 0) ? "failed: " : "",
(result < 0) ? strerror(errno) : "");
if (lp_syslog() > 0) {
syslog(audit_syslog_priority(handle), "close fd %d %s%s\n",
- fsp->fh->fd,
+ fsp_get_pathref_fd(fsp),
(result < 0) ? "failed: " : "",
(result < 0) ? strerror(errno) : "");
}
DEBUG(2, ("vfs_extd_audit: close fd %d %s %s\n",
- fsp->fh->fd,
+ fsp_get_pathref_fd(fsp),
(result < 0) ? "failed: " : "",
(result < 0) ? strerror(errno) : ""));
if (!NT_STATUS_IS_OK(status1)) {
DEBUG(0, ("Could not close dir! fname=%s, fd=%d, err=%d=%s\n",
- fsp_str_dbg(fsp), fsp->fh->fd, errno,
+ fsp_str_dbg(fsp), fsp_get_pathref_fd(fsp), errno,
strerror(errno)));
}
DBG_NOTICE("Close %s fd=%d %s (numopen=%d)\n",
fsp->fsp_flags.is_directory ?
"directory" : "file",
- fsp->fh->fd, fsp_fnum_dbg(fsp),
+ fsp_get_pathref_fd(fsp), fsp_fnum_dbg(fsp),
conn->num_files_open);
if (!fsp->fsp_flags.is_directory) {
#include "smb1_utils.h"
#include "libcli/security/security.h"
#include "lib/util/sys_rw_data.h"
+#include "smbd/fd_handle.h"
/****************************************************************************
Special FCB or DOS processing in the case of a sharing violation.
"private_options = 0x%"PRIx32", "
"access_mask = 0x%"PRIx32"\n",
fsp_str_dbg(fsp),
- fsp->fh->fd,
+ fsp_get_pathref_fd(fsp),
fsp->vuid,
fsp->file_pid,
fsp->fh->private_options,