1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

r3496: Fix calling of get_acl_group_bits().

Guenther
This commit is contained in:
Günther Deschner 2004-11-03 00:32:08 +00:00 committed by Gerald (Jerry) Carter
parent c7eab285d9
commit 3acc74eef5
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;
}
/****************************************************************************