diff options
author | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2005-12-17 11:36:22 +0000 |
---|---|---|
committer | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2005-12-17 11:36:22 +0000 |
commit | 80dbdba7e60c210a0ece8f754eca881c1d3a2d69 (patch) | |
tree | 60992742beb4d9c89cdfa8c937889d2f375293eb /comms/mgetty+sendfax/files | |
parent | f8b5b7e6fe9d0c04cd0ce84010b0657a862989b8 (diff) | |
download | ports-80dbdba7e60c210a0ece8f754eca881c1d3a2d69.tar.gz ports-80dbdba7e60c210a0ece8f754eca881c1d3a2d69.zip |
Upgrade to version 1.1.34
Add a workaround (patch-mg_m_init.c) so that it works on FreeBSD 6 (see PR kern/87208)
Notes
Notes:
svn path=/head/; revision=151374
Diffstat (limited to 'comms/mgetty+sendfax/files')
-rw-r--r-- | comms/mgetty+sendfax/files/patch-mg_m_init.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/comms/mgetty+sendfax/files/patch-mg_m_init.c b/comms/mgetty+sendfax/files/patch-mg_m_init.c new file mode 100644 index 000000000000..96d390c28241 --- /dev/null +++ b/comms/mgetty+sendfax/files/patch-mg_m_init.c @@ -0,0 +1,25 @@ +--- mg_m_init.c.orig Sat Nov 26 17:47:44 2005 ++++ mg_m_init.c Sat Dec 17 12:24:51 2005 +@@ -269,7 +269,7 @@ + if (fd > 0) + { + (void) close(0); +- if (dup(fd) != 0) ++ if (dup2(fd,0) != 0) + { + lprintf( L_FATAL, "mod: cannot make %s stdin", devname ); + return ERROR; +@@ -281,11 +281,11 @@ + (void) close(1); + (void) close(2); + +- if (dup(0) != 1) ++ if (dup2(0,1) != 1) + { + lprintf( L_FATAL, "mod: cannot dup to stdout"); return ERROR; + } +- if (dup(0) != 2) ++ if (dup2(0,2) != 2) + { + lprintf( L_FATAL, "mod: cannot dup to stderr"); return ERROR; + } |