projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops. Didn't do a `cvs rtag` before changing the version to 1.0.4+dev. Putting
[mmh]
/
uip
/
rcvtty.c
diff --git
a/uip/rcvtty.c
b/uip/rcvtty.c
index
b847b56
..
69a9031
100644
(file)
--- a/
uip/rcvtty.c
+++ b/
uip/rcvtty.c
@@
-10,6
+10,7
@@
#include <h/rcvmail.h>
#include <h/scansbr.h>
#include <zotnet/tws/tws.h>
#include <h/rcvmail.h>
#include <h/scansbr.h>
#include <zotnet/tws/tws.h>
+#include <zotnet/mts/mts.h>
#include <signal.h>
#include <fcntl.h>
#include <signal.h>
#include <fcntl.h>
@@
-47,7
+48,7
@@
static struct swit switches[] = {
#define VERSIONSW 8
{ "version", 0 },
#define HELPSW 9
#define VERSIONSW 8
{ "version", 0 },
#define HELPSW 9
- { "help", 4 },
+ { "help", 0 },
{ NULL, 0 }
};
{ NULL, 0 }
};
@@
-191,13
+192,13
@@
message_fd (char **vec)
struct stat st;
#ifdef HAVE_MKSTEMP
struct stat st;
#ifdef HAVE_MKSTEMP
- unlink (mkstemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil))));
+ fd = mkstemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil)));
#else
unlink (mktemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil))));
#else
unlink (mktemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil))));
-#endif
if ((fd = open (tmpfil, O_RDWR | O_CREAT | O_TRUNC, 0600)) == NOTOK)
return header_fd ();
unlink (tmpfil);
if ((fd = open (tmpfil, O_RDWR | O_CREAT | O_TRUNC, 0600)) == NOTOK)
return header_fd ();
unlink (tmpfil);
+#endif
if ((child_id = vfork()) == NOTOK) {
/* fork error */
if ((child_id = vfork()) == NOTOK) {
/* fork error */