From b38045f9daa9956d86c036814e74f134ed3c73e8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 24 Jul 2008 11:48:27 +1000 Subject: fixd a bug in the signal handling code - we could get phantom signals (signum 64) (This used to be commit af7fb2e38ba27cf8058eb1cef1f96bbc7b19849f) --- source4/lib/events/events_signal.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/events/events_signal.c b/source4/lib/events/events_signal.c index 80a14acc11..652df53d4b 100644 --- a/source4/lib/events/events_signal.c +++ b/source4/lib/events/events_signal.c @@ -46,15 +46,15 @@ struct sigcounter { the poor design of signals means that this table must be static global */ static struct sig_state { - struct signal_event *sig_handlers[NUM_SIGNALS]; - struct sigaction *oldact[NUM_SIGNALS]; - struct sigcounter signal_count[NUM_SIGNALS]; + struct signal_event *sig_handlers[NUM_SIGNALS+1]; + struct sigaction *oldact[NUM_SIGNALS+1]; + struct sigcounter signal_count[NUM_SIGNALS+1]; struct sigcounter got_signal; int pipe_hack[2]; #ifdef SA_SIGINFO /* with SA_SIGINFO we get quite a lot of info per signal */ - siginfo_t *sig_info[NUM_SIGNALS]; - struct sigcounter sig_blocked[NUM_SIGNALS]; + siginfo_t *sig_info[NUM_SIGNALS+1]; + struct sigcounter sig_blocked[NUM_SIGNALS+1]; #endif } *sig_state; -- cgit From a05c9ab9391c80da747e2ee8cd52e92c23f5c72d Mon Sep 17 00:00:00 2001 From: Brad Hards Date: Fri, 25 Jul 2008 17:43:21 +1000 Subject: Define HAVE_ASM_BYTEORDER at all times (This used to be commit 396ea14732d667960091f4a2570341059914ecb6) --- source4/lib/util/byteorder.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/util/byteorder.h b/source4/lib/util/byteorder.h index 857bd1d50b..894beccabf 100644 --- a/source4/lib/util/byteorder.h +++ b/source4/lib/util/byteorder.h @@ -126,6 +126,8 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val) __asm__ ("stwbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); } #define HAVE_ASM_BYTEORDER 1 +#else +#define HAVE_ASM_BYTEORDER 0 #endif @@ -172,7 +174,7 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val) #define SSVALS(buf,pos,val) SSVALX((buf),(pos),((int16_t)(val))) #define SIVALS(buf,pos,val) SIVALX((buf),(pos),((int32_t)(val))) -#else /* CAREFUL_ALIGNMENT */ +#else /* not CAREFUL_ALIGNMENT */ /* this handles things for architectures like the 386 that can handle alignment errors */ @@ -197,7 +199,7 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val) #define SSVALS(buf,pos,val) SVALS_NC(buf,pos)=((int16_t)(val)) #define SIVALS(buf,pos,val) IVALS_NC(buf,pos)=((int32_t)(val)) -#endif /* CAREFUL_ALIGNMENT */ +#endif /* not CAREFUL_ALIGNMENT */ /* now the reverse routines - these are used in nmb packets (mostly) */ #define SREV(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF)) -- cgit From 9437adf68b565b7a8ac40fdad3fe821c66818274 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 25 Jul 2008 16:02:29 +0200 Subject: lib/ldb/tools: allow -W and --realm when build from samba4 metze (This used to be commit 0aa6d63ec571b0ca05fbfe14d2b4e9ba3e1082e9) --- source4/lib/ldb/tools/cmdline.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/lib') diff --git a/source4/lib/ldb/tools/cmdline.c b/source4/lib/ldb/tools/cmdline.c index c9c77c4e47..765d8b9edf 100644 --- a/source4/lib/ldb/tools/cmdline.c +++ b/source4/lib/ldb/tools/cmdline.c @@ -75,6 +75,7 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, #if (_SAMBA_BUILD_ >= 4) POPT_COMMON_SAMBA POPT_COMMON_CREDENTIALS + POPT_COMMON_CONNECTION POPT_COMMON_VERSION #endif { NULL } -- cgit