1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

vfs_gpfs: indentation and README.Coding fixes

Best viewed with git show -w.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15069

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
(cherry picked from commit a0f7ced610013cad145ff14cedcfbb5388d1ea4f)
This commit is contained in:
Ralph Boehme 2022-05-17 14:47:03 +02:00 committed by Jule Anger
parent e3de2bdb85
commit ea39a8894a

@ -1355,23 +1355,25 @@ static int gpfsacl_emu_chmod(vfs_handle_struct *handle,
static int vfs_gpfs_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode) static int vfs_gpfs_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
{ {
SMB_STRUCT_STAT st; SMB_STRUCT_STAT st;
int rc; int rc;
if (SMB_VFS_NEXT_FSTAT(handle, fsp, &st) != 0) { rc = SMB_VFS_NEXT_FSTAT(handle, fsp, &st);
return -1; if (rc != 0) {
} return -1;
}
/* avoid chmod() if possible, to preserve acls */ /* avoid chmod() if possible, to preserve acls */
if ((st.st_ex_mode & ~S_IFMT) == mode) { if ((st.st_ex_mode & ~S_IFMT) == mode) {
return 0; return 0;
} }
rc = gpfsacl_emu_chmod(handle, fsp->fsp_name, rc = gpfsacl_emu_chmod(handle, fsp->fsp_name,
mode); mode);
if (rc == 1) if (rc == 1) {
return SMB_VFS_NEXT_FCHMOD(handle, fsp, mode); return SMB_VFS_NEXT_FCHMOD(handle, fsp, mode);
return rc; }
return rc;
} }
static uint32_t vfs_gpfs_winattrs_to_dosmode(unsigned int winattrs) static uint32_t vfs_gpfs_winattrs_to_dosmode(unsigned int winattrs)