]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:utils: assign ids to struct to list shares correctly
authorJule Anger <janger@samba.org>
Fri, 4 Mar 2022 08:02:28 +0000 (09:02 +0100)
committerJule Anger <janger@samba.org>
Mon, 7 Mar 2022 15:27:48 +0000 (15:27 +0000)
The commit "99d1f1fa10d smbd: Remove unused "struct connections_key"" removes
also the assignment of information to connections_data, which are needed to list
shares.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14999

Signed-off-by: Jule Anger <janger@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Jule Anger <janger@samba.org>
Autobuild-Date(master): Mon Mar  7 15:27:48 UTC 2022 on sn-devel-184

selftest/knownfail.d/smbstatus [deleted file]
source3/utils/conn_tdb.c

diff --git a/selftest/knownfail.d/smbstatus b/selftest/knownfail.d/smbstatus
deleted file mode 100644 (file)
index 50ea1c9..0000000
+++ /dev/null
@@ -1 +0,0 @@
-samba3.blackbox.smbstatus.test_output\(fileserver:local\)
index 24fd460c08174f8d35b13ca3bf20e8945a5fdd55..1d19d04f1aa0f6d7371191c16d26f2ef5c216ec5 100644 (file)
@@ -120,6 +120,8 @@ static int traverse_tcon_fn(struct smbXsrv_tcon_global0 *global,
 
        ZERO_STRUCT(data);
 
+       data.pid = global->server_id;
+       data.cnum = global->tcon_global_id;
        fstrcpy(data.servicename, global->share_name);
        data.uid = sess.uid;
        data.gid = sess.gid;