DECWRL extensions to qf file
[unix-history] / usr / src / usr.sbin / sendmail / src / collect.c
index c22b5b9..4acf3aa 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)collect.c  8.19 (Berkeley) %G%";
+static char sccsid[] = "@(#)collect.c  8.20 (Berkeley) %G%";
 #endif /* not lint */
 
 # include <errno.h>
 #endif /* not lint */
 
 # include <errno.h>
@@ -91,6 +91,8 @@ maketemp(from)
 
        if (!headeronly)
        {
 
        if (!headeronly)
        {
+               struct stat stbuf;
+
                e->e_df = queuename(e, 'd');
                e->e_df = newstr(e->e_df);
                if ((tf = dfopen(e->e_df, O_WRONLY|O_CREAT|O_TRUNC, FileMode)) == NULL)
                e->e_df = queuename(e, 'd');
                e->e_df = newstr(e->e_df);
                if ((tf = dfopen(e->e_df, O_WRONLY|O_CREAT|O_TRUNC, FileMode)) == NULL)
@@ -99,6 +101,10 @@ maketemp(from)
                        e->e_flags |= EF_NORETURN;
                        finis();
                }
                        e->e_flags |= EF_NORETURN;
                        finis();
                }
+               if (fstat(fileno(tf), &stbuf) < 0)
+                       e->e_dfino = -1;
+               else
+                       e->e_dfino = stbuf.st_ino;
                HasEightBits = FALSE;
        }
 
                HasEightBits = FALSE;
        }