s3-winbindd: Fix child logfile handling which broke with c67cff0372.
authorGünther Deschner <gd@samba.org>
Wed, 7 Jul 2010 15:01:09 +0000 (17:01 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 7 Jul 2010 15:01:09 +0000 (17:01 +0200)
Andreas, please check.

Guenther

source3/winbindd/winbindd_dual.c

index 277b17430695e80b1e0a4231b086e56f7886e2be..ed8eb1339f38f25bef658c8913a8d062780d5fc5 100644 (file)
@@ -407,7 +407,7 @@ void setup_child(struct winbindd_domain *domain, struct winbindd_child *child,
        if (logprefix && logname) {
                char *logbase = NULL;
 
-               if (lp_logfile()) {
+               if (*lp_logfile()) {
                        char *end = NULL;
 
                        if (asprintf(&logbase, "%s", lp_logfile()) < 0) {