diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-02-23 07:25:49 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-02-23 07:25:49 +0000 |
commit | 7082b61c4b06a9c5b4a6fe89a0f3e1ac5945066c (patch) | |
tree | bf7f9c0aa651cad71597111a903cac74c7f8d06a /source3/utils/smbcacls.c | |
parent | 46807bd1870e8136f752841814086edd19f4c1f1 (diff) | |
download | samba-7082b61c4b06a9c5b4a6fe89a0f3e1ac5945066c.tar.gz samba-7082b61c4b06a9c5b4a6fe89a0f3e1ac5945066c.tar.bz2 samba-7082b61c4b06a9c5b4a6fe89a0f3e1ac5945066c.zip |
make sure denied aces are first
(This used to be commit b0b49a4b28891f3e2ec8e8e221af713250cc8e17)
Diffstat (limited to 'source3/utils/smbcacls.c')
-rw-r--r-- | source3/utils/smbcacls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 9d806bbd9b..b050139aa5 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -541,7 +541,7 @@ static int owner_set(struct cli_state *cli, enum chown_mode change_mode, static int ace_compare(SEC_ACE *ace1, SEC_ACE *ace2) { if (sec_ace_equal(ace1, ace2)) return 0; - if (ace1->type != ace2->type) return ace1->type - ace2->type; + if (ace1->type != ace2->type) return ace2->type - ace1->type; if (sid_compare(&ace1->sid, &ace2->sid)) return sid_compare(&ace1->sid, &ace2->sid); if (ace1->flags != ace2->flags) return ace1->flags - ace2->flags; if (ace1->info.mask != ace2->info.mask) return ace1->info.mask - ace2->info.mask; |