1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3
Aurelien Aptel f13d07e459 s3/winbindd: use == -1 instead of < 0 for error checking uid_t
The sign of the uid_t type is left unspecified by POSIX. It's defined as
an unsigned 32b int on Linux, therefore the < 0 check is always
false.

For unsigned version of uid_t, "uid == -1" will implicitely cast -1 to
unsigned making it a valid test for both signed and unsigned version of
uid_t.

This commit makes the cast to (uid_t) explicit anyway.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jul  1 05:22:36 CEST 2016 on sn-devel-144
2016-07-01 05:22:36 +02:00
..
auth krb5pac.idl: introduce PAC_DOMAIN_GROUP_MEMBERSHIP to handle the resource groups 2016-06-30 07:16:45 +02:00
build
client s3-client: Fix compiler errors when building with --address-sanitizer 2016-06-16 04:40:13 +02:00
exports
groupdb Convert all uses of uint32/16/8 to _t in source3/groupdb. 2015-05-14 19:29:19 +02:00
include s3: libsmb: Widen the internal client smb1.pid to 32-bits as is used on the wire and in libcli/smb/smb1*.c 2016-06-18 15:32:17 +02:00
intl lang_tdb: don't leak lock_path or data_path onto talloc tos 2014-11-03 23:46:05 +01:00
lib s3: tldap: Make tldap_gensec_bind_send()/tldap_gensec_bind_recv() static. 2016-06-28 11:19:33 +02:00
libads s3: krb5: keytab - The done label can be jumped to with context == NULL. 2016-06-09 13:18:56 +02:00
libgpo gpo: don't leak cache_path onto talloc tos 2014-10-06 19:18:05 +02:00
libnet s3-libnet: Add a comment to make cleaŕ we want to fall through 2016-06-24 05:58:34 +02:00
librpc s3:librpc:crypto:gse: increase debug level for gse_init_client(). 2016-04-28 16:51:16 +02:00
libsmb s3: libsmb: Correctly trim a trailing \\ character in cli_smb2_create_fnum_send() when passing a pathname to SMB2 create. 2016-06-22 10:33:29 +02:00
locale s3: fix encryption help messages 2015-12-22 02:22:50 +01:00
locking Fix memory leak in share mode locking. 2016-05-27 18:43:31 +02:00
modules s3-vfs/snapper: Fix compiler errors when building with --address-sanitizer 2016-06-16 04:40:13 +02:00
nmbd dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
param smbd: remove "only user" and "username" parameters 2016-05-06 01:32:24 +02:00
passdb s3:pdb_samba_dsdb: fix calucating of dsdb_flags 2016-06-27 05:00:16 +02:00
printing printing: handle "printcap cache time" change on HUP 2016-04-19 13:14:20 +02:00
profile s3-profile: reduce dependencies of smbprofile.h 2016-03-28 20:45:16 +02:00
registry s3:registry: use dbwrap_purge_bystring instead of dbwrap_delete_bystring 2016-03-01 21:50:24 +01:00
rpc_client s3:rpc_client: remove unused rpc_pipe_client->max_recv_frag 2016-06-24 14:09:01 +02:00
rpc_server s3:rpc_client: remove unused rpc_pipe_client->max_recv_frag 2016-06-24 14:09:01 +02:00
rpcclient s3:rpcclient: make use of SMB_SIGNING_IPC_DEFAULT 2016-05-21 05:01:15 +02:00
script selftest: Kerberos auth with netbios alias SPNs 2016-06-19 19:07:45 +02:00
selftest selftest: test idmap backend id allocation for unknown SIDS 2016-06-28 07:27:18 +02:00
services Convert all uint32/16/8 to _t in a couple of include files. 2015-05-12 04:22:55 +02:00
smbd s3/smbd: only use stored dos attributes for open_match_attributes() check 2016-06-25 18:47:17 +02:00
stf
torture s3: torture: Add test that proves Win2k12 correctly returns pidlow and pidhigh in SMB1 requests. 2016-06-18 15:32:18 +02:00
utils s3:utils/net: Add new option 'unregister' in 'net ads dns' command. 2016-06-27 20:43:26 +02:00
web
winbindd s3/winbindd: use == -1 instead of < 0 for error checking uid_t 2016-07-01 05:22:36 +02:00
.clang_complete lib: Remove tdb_compat 2015-03-17 11:30:52 +01:00
.dmallocrc
.indent.pro
change-log
Doxyfile
mainpage.dox
smbadduser.in
wscript s3: wscript: Add checks for open file description locks. 2016-05-21 01:28:28 +02:00
wscript_build lib: Move poll_funcs to lib/ 2016-06-07 14:34:10 +02:00
wscript_configure_system_ncurses Transition to waf 1.8: wrapped conf.check_cfg 2015-03-16 03:00:07 +01:00