Pavel Filipenský
1ff8bbd297
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in winbindd_getusersids.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
98b1f42a97
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in winbindd_getuserdomgroups.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
fb4f1e3717
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in winbindd_getpwent.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
ec8b50e049
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in winbindd_getgroups.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
23b0842b63
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in winbindd_getgrnam.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
0086ce11de
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in winbindd_getgrgid.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
cd49a22c68
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in winbindd_getgrent.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
37a1c25d36
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_lookupsids.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
75c901024f
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_xids2sids.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
7e715ed0bb
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_sids2xids.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
98c678321b
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_queryuser.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
473ed0a52f
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_query_user_list.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
55510a931e
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_query_group_list.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
d2eb6404a1
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_next_pwent.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
547b51935c
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_lookupusergroups.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
6aded17131
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_lookupuseraliases.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
892975dab7
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_group_members.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
7736ac45a4
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_gettoken.c
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Pavel Filipenský
e01b9f11ad
README.Coding: PRINT format specifiers PRIuxx
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-21 13:47:31 +00:00
Andreas Schneider
3d95220a57
Add a .clang-format file
...
How to use:
Install 'git-format-clang' which is part of the clang suite (Fedora:
git-clang-format, openSUSE: clang-tools).
Now do your changes and stage them with `git add`. Once they are staged
format the code using `git clang-format` before you commit.
Now the formatting changed can be viewed with `git diff` against the
staged changes.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Jul 20 18:23:49 UTC 2022 on sn-devel-184
2022-07-20 18:23:49 +00:00
Andreas Schneider
4c12840e42
testprogs: Reformat common_test_fns.inc
...
shfmt -w -p -i 0 -fn testprogs/blackbox/common_test_fns.inc
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Wed Jul 20 11:59:26 UTC 2022 on sn-devel-184
2022-07-20 11:59:26 +00:00
Andreas Schneider
88c1173655
testprogs: Reformat common-links.sh
...
shfmt -w -p -i 0 -fn testprogs/blackbox/common-links.sh
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
2022-07-20 11:09:36 +00:00
Andreas Schneider
f340b88472
waf: Check for -Wno-error=array-bounds flags
...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15073
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Jul 19 12:17:35 UTC 2022 on sn-devel-184
2022-07-19 12:17:35 +00:00
Andreas Schneider
965c6617ad
s3:tests: Add test to access msdfs path with smbget
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jul 19 00:10:10 UTC 2022 on sn-devel-184
2022-07-19 00:10:10 +00:00
Andreas Schneider
2b32d93222
s3:rpcclient: Goto done in cmd_samr_setuserinfo_int()
...
We need to free the frame or we will run into:
smb_panic (why=0x7fa8c511aa88 "Frame not freed in order.")
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15124
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Jul 18 21:21:59 UTC 2022 on sn-devel-184
2022-07-18 21:21:59 +00:00
Andreas Schneider
130283cbae
s3:winbind: Add additional debug level check to wb_xids2sids_recv()
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Jul 18 14:44:07 UTC 2022 on sn-devel-184
2022-07-18 14:44:07 +00:00
Andreas Schneider
934bc0c583
s3:winbind: Fix pointer access in wb_xids2sids_recv()
...
CID 1507348
CID 1507349
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2022-07-18 13:46:33 +00:00
Andreas Schneider
e824ee6b5a
s3:winbind: Add additional debug level check to wb_lookupusergroups_recv()
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2022-07-18 13:46:33 +00:00
Andreas Schneider
450b8da834
s3:winbind: Fix pointer access in wb_lookupusergroups_recv()
...
Fixes CID 1507350
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2022-07-18 13:46:33 +00:00
Pavel Filipenský
b17cae66e7
s3:winbind: Change max_users, num_users from int to uint32_t in winbindd_getpwent_state
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Jul 15 15:21:23 UTC 2022 on sn-devel-184
2022-07-15 15:21:23 +00:00
Pavel Filipenský
0fb98133e2
s3:winbind: Change num_gids from int to uint32_t in winbindd_getgroups_state
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
cf33679d78
s3:winbind: Change max_groups, num_groups from int to uint32_t in getpwent_state
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
2ef11c4dde
s3:winbind: Change num_groups, next_group from int to uint32_t in wb_group_members.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
69a9b7a5db
s3:winbind: Change num_groups from int to uint32_t in wb_query_group_list_recv()
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
84ab676c36
s3:winbind: Change num_received, num_domains from int to uint32_t in winbindd_list_groups_state
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
72eacda263
s3:winbind: Change num_sids from int to uint32_t in wb_lookupusergroups_recv()
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
51250c6142
s3:winbind: Change num_sids from int to uint32_t in wb_lookupuseraliases_send()
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
ef5090b3b6
s3:winbind: Change num_sids from int to uint32_t in wb_gettoken_recv()
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
d3b4940379
s3:winbind: Fix trailing whitespace in winbindd.h
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
f72f039027
s3:winbind: Improve logging in wb_sids2xids.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
5804a4c0bd
s3:winbind: Improve logging in wb_query_user_list.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
7d751d76b2
s3:winbind: Improve logging in wb_queryuser.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
bd1447cab2
s3:winbind: Improve logging in wb_query_group_list.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
68b8b98cba
s3:winbind: Improve logging in wb_next_pwent.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
9435a8bf9a
s3:winbind: Improve logging in wb_next_grent.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
513d9c34ce
s3:winbind: Improve logging in wb_lookupusergroups.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
b8f3dec0fc
s3:winbind: Improve logging in wb_lookupuseraliases.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
7b9bf8429e
s3:winbind: Improve logging in wb_lookupsids.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
6b4cbb3dad
s3:winbind: Improve logging in wb_lookupsid.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00
Pavel Filipenský
5c0d8054cd
s3:winbind: Improve logging in wb_lookupname.c
...
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-15 14:25:38 +00:00