1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/ldb/tools
Andreas Schneider c2c7c1f50a lib:ldb-samba: Improve calculate_popt_array_length()
Note that memcmp() doesn't work well with padding bytes. So avoid it!

(gdb) ptype/o struct poptOption
/* offset    |  size */  type = struct poptOption {
/*    0      |     8 */    const char *longName;
/*    8      |     1 */    char shortName;
/* XXX  3-byte hole  */
/*   12      |     4 */    unsigned int argInfo;
/*   16      |     8 */    void *arg;
/*   24      |     4 */    int val;
/* XXX  4-byte hole  */
/*   32      |     8 */    const char *descrip;
/*   40      |     8 */    const char *argDescrip;

                           /* total size (bytes):   48 */

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2021-06-16 00:34:38 +00:00
..
cmdline.c lib:ldb-samba: Improve calculate_popt_array_length() 2021-06-16 00:34:38 +00:00
cmdline.h ldb: ensure that ldbedit operates like ldbmodify: set DONT_CREATE_DB 2020-03-02 02:47:30 +00:00
ldbadd.c
ldbdel.c
ldbdump.c ldb: ldbdump key and pack format version comments 2019-05-22 05:58:17 +00:00
ldbedit.c ldb: ensure that ldbedit operates like ldbmodify: set DONT_CREATE_DB 2020-03-02 02:47:30 +00:00
ldbmodify.c ldb: Avoid a cast (unsigned long long) in ldbmodify.c 2020-06-15 17:59:39 +00:00
ldbrename.c
ldbsearch.c fix mem leak in ldbsearch 2018-08-15 07:08:24 +02:00
ldbtest.c ldb/tools/ldbtest: initialise msg object 2019-05-10 01:15:18 +00:00
ldbutil.c
ldbutil.h ldb: Fix format-nonliteral warning 2016-08-24 01:33:50 +02:00