git.samba.org
/
kai
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VFS: Modify chown to take a const struct smb_filename * instead of const char *
[kai/samba-autobuild/.git]
/
source3
/
modules
/
vfs_fake_acls.c
diff --git
a/source3/modules/vfs_fake_acls.c
b/source3/modules/vfs_fake_acls.c
index 3887e86746e252742ff3dc538fa477f16f3e0f88..cb907d0ca9875fabbb8c450c4622e2a4159b0385 100644
(file)
--- a/
source3/modules/vfs_fake_acls.c
+++ b/
source3/modules/vfs_fake_acls.c
@@
-393,20
+393,33
@@
static int fake_acls_sys_acl_delete_def_file(vfs_handle_struct *handle, const ch
return ret;
}
return ret;
}
-static int fake_acls_chown(vfs_handle_struct *handle, const char *path, uid_t uid, gid_t gid)
+static int fake_acls_chown(vfs_handle_struct *handle,
+ const struct smb_filename *smb_fname,
+ uid_t uid,
+ gid_t gid)
{
int ret;
uint8_t id_buf[4];
if (uid != -1) {
SIVAL(id_buf, 0, uid);
{
int ret;
uint8_t id_buf[4];
if (uid != -1) {
SIVAL(id_buf, 0, uid);
- ret = SMB_VFS_NEXT_SETXATTR(handle, path, FAKE_UID, id_buf, sizeof(id_buf), 0);
+ ret = SMB_VFS_NEXT_SETXATTR(handle,
+ smb_fname->base_name,
+ FAKE_UID,
+ id_buf,
+ sizeof(id_buf),
+ 0);
if (ret != 0) {
return ret;
}
}
if (gid != -1) {
SIVAL(id_buf, 0, gid);
if (ret != 0) {
return ret;
}
}
if (gid != -1) {
SIVAL(id_buf, 0, gid);
- ret = SMB_VFS_NEXT_SETXATTR(handle, path, FAKE_GID, id_buf, sizeof(id_buf), 0);
+ ret = SMB_VFS_NEXT_SETXATTR(handle,
+ smb_fname->base_name,
+ FAKE_GID,
+ id_buf,
+ sizeof(id_buf),
+ 0);
if (ret != 0) {
return ret;
}
if (ret != 0) {
return ret;
}