diff options
author | Jeremy Allison <jra@samba.org> | 2001-06-19 00:44:23 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-06-19 00:44:23 +0000 |
commit | c1fbf761ce819a4da9f26758129e0923bfc1e6ff (patch) | |
tree | e6b476b629d240f794fe8ecbbde8ba771d0846ea /source3 | |
parent | 8a3782947a6ea64cd2a9d9a90c994ecbf9cd8ac6 (diff) | |
download | samba-c1fbf761ce819a4da9f26758129e0923bfc1e6ff.tar.gz samba-c1fbf761ce819a4da9f26758129e0923bfc1e6ff.tar.bz2 samba-c1fbf761ce819a4da9f26758129e0923bfc1e6ff.zip |
rpc_server/srv_srvsvc_nt.c: Don't test an uint32 for < 0.
utils/smbcacls.c: Set enum correctly.
Jeremy.
(This used to be commit 66f959e0ffb0cd385167a34c7db3f4959eaf1d7f)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_srvsvc_nt.c | 2 | ||||
-rw-r--r-- | source3/utils/smbcacls.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c index b28a0c9683..e56e63490d 100644 --- a/source3/rpc_server/srv_srvsvc_nt.c +++ b/source3/rpc_server/srv_srvsvc_nt.c @@ -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) diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 7b459a32ed..4893eb4202 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -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; |