View | Details | Raw Unified | Return to bug 7617
Collapse All | Expand All

(-)a/spamc/Makefile.win (-2 / +5 lines)
Lines 19-26 all: spamc$(EXEEXT) Link Here
19
19
20
20
21
$(SRCDIR)/spamc$(EXEEXT):
21
$(SRCDIR)/spamc$(EXEEXT):
22
	cd $(SRCDIR)
22
# Bug #7617: Both commands must be on the same line because for every
23
	$(MAKE) spamc$(EXEEXT)
23
#	line a new sub-shell is spawned. The change of directory would be
24
#	"forgotten" before the next command is executed, if the commands
25
#	were on different lines.
26
	cd $(SRCDIR) && $(MAKE) spamc$(EXEEXT)
24
27
25
28
26
spamc$(EXEEXT): $(SPAMC_FILES) $(LIBSPAMC_FILES)
29
spamc$(EXEEXT): $(SPAMC_FILES) $(LIBSPAMC_FILES)
(-)a/spamc/getopt.c (-2 / +3 lines)
Lines 21-27 Link Here
21
#include <string.h>
21
#include <string.h>
22
#include <assert.h>
22
#include <assert.h>
23
#include <stdlib.h>
23
#include <stdlib.h>
24
#include <err.h>
24
#include <errno.h>
25
#include "getopt.h"
25
#include "getopt.h"
26
26
27
#ifdef WIN32
27
#ifdef WIN32
Lines 246-252 spamc_getopt_long(int argc, char * const argv[], Link Here
246
      if((bp = strchr(longopt, '='))) {
246
      if((bp = strchr(longopt, '='))) {
247
         opt = strdup(bp+1);
247
         opt = strdup(bp+1);
248
         if (opt == NULL) {
248
         if (opt == NULL) {
249
            err(1, NULL);
249
            fprintf(stderr, "%s: %s\n", argv[0], strerror(errno));
250
            exit(1);
250
         }  
251
         }  
251
         longoptlen -= strlen(bp);
252
         longoptlen -= strlen(bp);
252
      }
253
      }

Return to bug 7617