summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 11:19:26 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:58 -0700
commit63f3980a88e033e118160fc92f95f0bf9bd2fbb2 (patch)
tree54559ff7ee2004a89687af0cf136440142b05834 /source3
parent58bb3ae99d0ccb469676117245b2ffff4abfa333 (diff)
downloadsamba-63f3980a88e033e118160fc92f95f0bf9bd2fbb2.tar.gz
samba-63f3980a88e033e118160fc92f95f0bf9bd2fbb2.tar.bz2
samba-63f3980a88e033e118160fc92f95f0bf9bd2fbb2.zip
vfs: Convert vfs_gpfs_chmod to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_gpfs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index 4cfbea3aff..674e101c58 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -1183,10 +1183,12 @@ static int vfs_gpfs_chmod(vfs_handle_struct *handle, const char *path, mode_t mo
{
struct smb_filename *smb_fname_cpath;
int rc;
- NTSTATUS status;
- status = create_synthetic_smb_fname(
- talloc_tos(), path, NULL, NULL, &smb_fname_cpath);
+ smb_fname_cpath = synthetic_smb_fname(talloc_tos(), path, NULL, NULL);
+ if (smb_fname_cpath == NULL) {
+ errno = ENOMEM;
+ return -1;
+ }
if (SMB_VFS_NEXT_STAT(handle, smb_fname_cpath) != 0) {
return -1;