summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-25 06:43:52 -0700
committerVolker Lendecke <vlendec@samba.org>2011-03-02 18:39:21 +0100
commitcf7dac6fbccca6667e5ed20b199e80701b8a6bd4 (patch)
tree611f063cb14b4ba77be8a574dc2cd46101dfb150 /source3/smbd
parentc9d1e16c2c6ab5ffebbab4bd82a4cda0bb860046 (diff)
downloadsamba-cf7dac6fbccca6667e5ed20b199e80701b8a6bd4.tar.gz
samba-cf7dac6fbccca6667e5ed20b199e80701b8a6bd4.tar.bz2
samba-cf7dac6fbccca6667e5ed20b199e80701b8a6bd4.zip
s3: Pass smb_filename through the set_offline vfs op
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/dosmode.c2
-rw-r--r--source3/smbd/vfs.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index 307da32bc3..325a3c6461 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -719,7 +719,7 @@ int file_set_dosmode(connection_struct *conn, struct smb_filename *smb_fname,
if (dosmode & FILE_ATTRIBUTE_OFFLINE) {
if (!(old_mode & FILE_ATTRIBUTE_OFFLINE)) {
- lret = SMB_VFS_SET_OFFLINE(conn, smb_fname->base_name);
+ lret = SMB_VFS_SET_OFFLINE(conn, smb_fname);
if (lret == -1) {
DEBUG(0, ("set_dos_mode: client has asked to "
"set FILE_ATTRIBUTE_OFFLINE to "
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 71de587d17..41d3650413 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -2014,8 +2014,8 @@ bool smb_vfs_call_is_offline(struct vfs_handle_struct *handle,
}
int smb_vfs_call_set_offline(struct vfs_handle_struct *handle,
- const char *path)
+ const struct smb_filename *fname)
{
VFS_FIND(set_offline);
- return handle->fns->set_offline(handle, path);
+ return handle->fns->set_offline(handle, fname);
}