s3: Fix a bug in net's use of popt
authorVolker Lendecke <vl@samba.org>
Sun, 24 Jan 2010 17:51:58 +0000 (18:51 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 24 Jan 2010 19:32:17 +0000 (20:32 +0100)
In order to add --use-ccache to net, I added another "bool opt_ccache;" to
struct net_context. popt did not like this, it took a while to figure out why.
Popt has the lines

    /* XXX Check alignment, may fail on funky platforms. */
    if (arg == NULL || (((unsigned long)arg) & (sizeof(*arg)-1)))
        return POPT_ERROR_NULLARG;

The "bool opt_ccache;" was not aligned anymore...

source3/utils/net.h

index 765b61bd564d118fa4d0e7bc34c139ff241fdac3..3978459a624c091ff9f7a9fbd61885a355b2fc34 100644 (file)
@@ -70,7 +70,7 @@ struct net_context {
        const char *opt_exclude;
        const char *opt_destination;
        int opt_testmode;
-       bool opt_kerberos;
+       int opt_kerberos;
        int opt_force_full_repl;
        int opt_single_obj_repl;
        int opt_clean_old_entries;