1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

rpc_server/srv_srvsvc_nt.c: Don't test an uint32 for < 0.

utils/smbcacls.c: Set enum correctly.
Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 4897cfcf85
commit 66f959e0ff
2 changed files with 2 additions and 2 deletions

View File

@ -1761,7 +1761,7 @@ static uint32 init_server_disk_enum(uint32 *resume)
/*resume can be an offset into the list for now*/
if(*resume < 0)
if(*resume & 0x80000000)
*resume = 0;
if(*resume > server_disk_count)

View File

@ -810,7 +810,7 @@ You can string acls together with spaces, commas or newlines\n\
char *p;
static pstring servicesf = CONFIGFILE;
struct cli_state *cli=NULL;
enum acl_mode mode = 0;
enum acl_mode mode = SMB_ACL_SET;
char *the_acl = NULL;
enum chown_mode change_mode = REQUEST_NONE;
int result;