CC = @CC@
CFLAGS = @CFLAGS@
DEFS = @DEFS@
-CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"'
INCLUDES = -I.. -I$(srcdir) -I$(top_srcdir) @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LEXLIB = @LEXLIB@
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
-COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
LN = ln
show: show.o $(LOCALLIBS)
$(LINK) show.o $(LINKLIBS)
-slocal.o: slocal.c
- $(COMPILE2) $(srcdir)/slocal.c
-
slocal: slocal.o $(LOCALLIBS)
$(LINK) slocal.o $(LINKLIBS)
};
-/* global maildelivery file */
-char *maildelivery = NMHETCDIR"/maildelivery";
-
-
static int globbed = 0; /* have we built "vars" table yet? */
static int parsed = 0; /* have we built header field table yet */
static int utmped = 0; /* have we scanned umtp(x) file yet */
static int
localmail(int fd, char *mdlvr)
{
+ char buf[BUFSIZ];
+
/* delivery according to personal Maildelivery file */
if (usr_delivery(fd, mdlvr ? mdlvr : ".maildelivery", 0) != -1) {
return 0;
}
/* delivery according to global Maildelivery file */
- if (usr_delivery(fd, maildelivery, 1) != -1) {
+ snprintf(buf, sizeof buf, "%s/%s", mhetcdir, "maildelivery");
+ if (usr_delivery(fd, buf, 1) != -1) {
return 0;
}
if (verbose) {