put location of dead.letter on a compile flag
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Sat, 18 Dec 1993 22:25:04 +0000 (14:25 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Sat, 18 Dec 1993 22:25:04 +0000 (14:25 -0800)
SCCS-vsn: usr.sbin/sendmail/src/savemail.c 8.24

usr/src/usr.sbin/sendmail/src/savemail.c

index 244555c..bd55259 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)savemail.c 8.23 (Berkeley) %G%";
+static char sccsid[] = "@(#)savemail.c 8.24 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -43,6 +43,10 @@ static char sccsid[] = "@(#)savemail.c       8.23 (Berkeley) %G%";
 # define ESM_PANIC     6       /* leave the locked queue/transcript files */
 # define ESM_DONE      7       /* the message is successfully delivered */
 
 # define ESM_PANIC     6       /* leave the locked queue/transcript files */
 # define ESM_DONE      7       /* the message is successfully delivered */
 
+# ifndef _PATH_VARTMP
+#  define _PATH_VARTMP "/usr/tmp/"
+# endif
+
 
 savemail(e)
        register ENVELOPE *e;
 
 savemail(e)
        register ENVELOPE *e;
@@ -348,7 +352,8 @@ savemail(e)
                                break;
                        }
 
                                break;
                        }
 
-                       strcpy(buf, "/usr/tmp/dead.letter");
+                       strcpy(buf, _PATH_VARTMP);
+                       strcat(buf, "dead.letter");
                        if (!writable(buf, NULLADDR, SFF_NOSLINK))
                        {
                                state = ESM_PANIC;
                        if (!writable(buf, NULLADDR, SFF_NOSLINK))
                        {
                                state = ESM_PANIC;