summaryrefslogtreecommitdiff
path: root/source3/lib/sysquotas_xfs.c
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@us.ibm.com>2013-06-12 14:55:15 -0700
committerJeremy Allison <jra@samba.org>2013-06-17 10:41:46 -0700
commit4cd7e1d283f060e794023d5b0a48a7ec97d33820 (patch)
treea5ac00fe4e1cc14f4ae8f53442482e9ead80e4cd /source3/lib/sysquotas_xfs.c
parent9f25ad44a93da09b3a7c14a4a1a0e78c5a1b529c (diff)
downloadsamba-4cd7e1d283f060e794023d5b0a48a7ec97d33820.tar.gz
samba-4cd7e1d283f060e794023d5b0a48a7ec97d33820.tar.bz2
samba-4cd7e1d283f060e794023d5b0a48a7ec97d33820.zip
vfs_streams_xattr: Do not attempt to write empty attribute twice
The create disposition FILE_OVERWRITE_IF is mapped to the flags O_CREAT|O_TRUNC. In vfs_streams_xattr, this triggers two calls to SMB_VFS_SETXATTR. The second can fail if O_EXCL is also set, resulting in an unnecessary error. Merge the identical code to handle O_CREAT and O_TRUNC to avoid setting an empty attribute twice. Also add the flags parameter to the debug message. Signed-off-by: Christof Schmitt <christof.schmitt@us.ibm.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/lib/sysquotas_xfs.c')
0 files changed, 0 insertions, 0 deletions