1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

r3496: Fix calling of get_acl_group_bits().

Guenther
(This used to be commit 3acc74eef5dae16d7e2792206640904265c42494)
This commit is contained in:
Günther Deschner 2004-11-03 00:32:08 +00:00 committed by Gerald (Jerry) Carter
parent c0e31dd4f5
commit 193e82b056
2 changed files with 4 additions and 2 deletions

View File

@ -344,7 +344,9 @@ int file_set_dosmode(connection_struct *conn, const char *fname, uint32 dosmode,
return(-1);
}
get_acl_group_bits(conn, fname, &st->st_mode);
if (!get_acl_group_bits(conn, fname, &st->st_mode)) {
return(-1);
}
if (S_ISDIR(st->st_mode))
dosmode |= aDIR;

View File

@ -3226,7 +3226,7 @@ int get_acl_group_bits( connection_struct *conn, const char *fname, mode_t *mode
}
}
SMB_VFS_SYS_ACL_FREE_ACL(conn, posix_acl);
return -1;
return result;
}
/****************************************************************************