diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-05-12 07:17:10 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-05-12 07:17:10 +0000 |
commit | c0b3a5cafbe33441b40fe786bf4f3033723de393 (patch) | |
tree | 5e2a46295ec6a6923de4cbace2ab11e5e371e3cb | |
parent | 9f0e5dee4a53772da7446706e789f3a96385011b (diff) | |
download | mailfromd-c0b3a5cafbe33441b40fe786bf4f3033723de393.tar.gz mailfromd-c0b3a5cafbe33441b40fe786bf4f3033723de393.tar.bz2 |
Update for the recent gnulib changes
git-svn-id: file:///svnroot/mailfromd/trunk@1422 7a8a7f39-df28-0410-adc6-e0d955640f24
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | README-alpha | 5 | ||||
-rw-r--r-- | bootstrap | 2 | ||||
-rw-r--r-- | doc/mailfromd.texi | 3 | ||||
-rw-r--r-- | doc/mtasim.texi | 6 | ||||
-rw-r--r-- | src/Makefile.am | 5 | ||||
-rw-r--r-- | src/openat-die.c | 40 |
7 files changed, 63 insertions, 8 deletions
@@ -1,3 +1,13 @@ | |||
1 | 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua> | ||
2 | |||
3 | * bootstrap: Avoid importing openat-die. This needs the following | ||
4 | patch: | ||
5 | http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00056.html | ||
6 | * README-alpha: Update | ||
7 | * src/openat-die.c: New source | ||
8 | * src/Makefile.am (mtasim_SOURCES): Add openat-die.c | ||
9 | * doc/mailfromd.texi, doc/mtasim.texi: Update | ||
10 | |||
1 | 2007-05-11 Sergey Poznyakoff <gray@gnu.org.ua> | 11 | 2007-05-11 Sergey Poznyakoff <gray@gnu.org.ua> |
2 | 12 | ||
3 | * configure.ac, NEWS: Raise version number to 4.0. Ready for the | 13 | * configure.ac, NEWS: Raise version number to 4.0. Ready for the |
diff --git a/README-alpha b/README-alpha index 4cb0c1fc..68568139 100644 --- a/README-alpha +++ b/README-alpha | |||
@@ -54,6 +54,11 @@ and create the configuration framework. Run: | |||
54 | 54 | ||
55 | (make sure gnulib-tool is in your path). | 55 | (make sure gnulib-tool is in your path). |
56 | 56 | ||
57 | Note: at the time of this writing (2007-05-12) the following patch | ||
58 | needs to be applied to gnulib before running bootstrap: | ||
59 | |||
60 | http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00056.html | ||
61 | |||
57 | 3. Configure and build the package as described in the documentation. See | 62 | 3. Configure and build the package as described in the documentation. See |
58 | 63 | ||
59 | http://mailfromd.software.gnu.org.ua/manual/html_node/Building | 64 | http://mailfromd.software.gnu.org.ua/manual/html_node/Building |
@@ -12,6 +12,6 @@ MODLIST="argp\ | |||
12 | strtok_r\ | 12 | strtok_r\ |
13 | version-etc" | 13 | version-etc" |
14 | 14 | ||
15 | gnulib-tool --import --avoid xalloc-die $MODLIST | 15 | gnulib-tool --import --avoid xalloc-die --avoid openat-die $MODLIST |
16 | test -f lib/daemon.c || ln src/daemon.c lib/ | 16 | test -f lib/daemon.c || ln src/daemon.c lib/ |
17 | autoreconf -i -f -s | 17 | autoreconf -i -f -s |
diff --git a/doc/mailfromd.texi b/doc/mailfromd.texi index d8aa4da5..c937bf80 100644 --- a/doc/mailfromd.texi +++ b/doc/mailfromd.texi | |||
@@ -375,8 +375,7 @@ to facilitate the configuration on @samp{Sendmail} side. | |||
375 | concentrated mainly on bug-fixes, while the main development was done | 375 | concentrated mainly on bug-fixes, while the main development was done |
376 | on the next branch. | 376 | on the next branch. |
377 | 377 | ||
378 | @FIXME{When 4.0 is out, change the data below:} | 378 | The version 4.0 appeared on May 12, 2007. The full |
379 | The version 4.0 appeared on @value{UPDATED}. The full | ||
380 | list of changes in this release is more than 500 lines long, so it is | 379 | list of changes in this release is more than 500 lines long, so it is |
381 | impractical to list them here. In particular, this version introduced | 380 | impractical to list them here. In particular, this version introduced |
382 | lots of new features in @acronym{MFL} syntax and the | 381 | lots of new features in @acronym{MFL} syntax and the |
diff --git a/doc/mtasim.texi b/doc/mtasim.texi index 8e5f66f8..e6fa9857 100644 --- a/doc/mtasim.texi +++ b/doc/mtasim.texi | |||
@@ -84,7 +84,7 @@ to: | |||
84 | You can try a simple @acronym{SMTP} session now: | 84 | You can try a simple @acronym{SMTP} session now: |
85 | 85 | ||
86 | @smallexample | 86 | @smallexample |
87 | 220 mtasim (mailfromd 3.1.92) ready | 87 | 220 mtasim (mailfromd @value{VERSION}) ready |
88 | (mtasim) @kbd{ehlo localhost} | 88 | (mtasim) @kbd{ehlo localhost} |
89 | 250-pleased to meet you | 89 | 250-pleased to meet you |
90 | 250 HELP | 90 | 250 HELP |
@@ -125,7 +125,7 @@ will connect to it and you will get the following initial prompt: | |||
125 | 125 | ||
126 | @smallexample | 126 | @smallexample |
127 | @group | 127 | @group |
128 | 220-mtasim (mailfromd 3.1.92) ready | 128 | 220-mtasim (mailfromd @value{VERSION}) ready |
129 | 220 Connected to milter inet:999@@localhost | 129 | 220 Connected to milter inet:999@@localhost |
130 | (mtasim) | 130 | (mtasim) |
131 | @end group | 131 | @end group |
@@ -440,7 +440,7 @@ cases. | |||
440 | @item --define=@var{macro}=@var{value} | 440 | @item --define=@var{macro}=@var{value} |
441 | @itemx -D @var{macro}=@var{value} | 441 | @itemx -D @var{macro}=@var{value} |
442 | Define Sendmail macro @var{macro} to the given @var{value}. It is | 442 | Define Sendmail macro @var{macro} to the given @var{value}. It is |
443 | similar to @code{\D} administrative command (@pxref{D command}) | 443 | similar to the @code{\D} administrative command (@pxref{D command}) |
444 | 444 | ||
445 | @item --help | 445 | @item --help |
446 | @itemx -? | 446 | @itemx -? |
diff --git a/src/Makefile.am b/src/Makefile.am index b017eb96..c83808a1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -63,11 +63,12 @@ EXTRA_LIBRARIES=libsyslog_async.a | |||
63 | noinst_LIBRARIES=libmf.a @BUILD_SYSLOG_ASYNC@ | 63 | noinst_LIBRARIES=libmf.a @BUILD_SYSLOG_ASYNC@ |
64 | libsyslog_async_a_SOURCES=syslog_async.c syslog_async.h | 64 | libsyslog_async_a_SOURCES=syslog_async.c syslog_async.h |
65 | 65 | ||
66 | libmf_a_SOURCES=version.c | 66 | libmf_a_SOURCES=\ |
67 | version.c | ||
67 | 68 | ||
68 | mailfromd_LDADD = ./libmf.a $(LDADD) $(SYSLOG_LIBS) | 69 | mailfromd_LDADD = ./libmf.a $(LDADD) $(SYSLOG_LIBS) |
69 | 70 | ||
70 | mtasim_SOURCES = mtasim.c | 71 | mtasim_SOURCES = mtasim.c openat-die.c |
71 | mtasim_LDADD = ./libmf.a $(LDADD) $(READLINE_LIBS) | 72 | mtasim_LDADD = ./libmf.a $(LDADD) $(READLINE_LIBS) |
72 | 73 | ||
73 | noinst_HEADERS = mailfromd.h mu_dbm.h builtin.h dns.h spf.h drivers.c debug.h | 74 | noinst_HEADERS = mailfromd.h mu_dbm.h builtin.h dns.h spf.h drivers.c debug.h |
diff --git a/src/openat-die.c b/src/openat-die.c new file mode 100644 index 00000000..386d98be --- /dev/null +++ b/src/openat-die.c | |||
@@ -0,0 +1,40 @@ | |||
1 | /* This file is part of mailfromd. | ||
2 | Copyright (C) 2007 Sergey Poznyakoff | ||
3 | |||
4 | This program is free software; you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation; either version 2, or (at your option) | ||
7 | any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program; if not, write to the Free Software | ||
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
17 | MA 02110-1301 USA */ | ||
18 | |||
19 | #ifdef HAVE_CONFIG_H | ||
20 | # include <config.h> | ||
21 | #endif | ||
22 | |||
23 | #include "mailfromd.h" | ||
24 | |||
25 | void | ||
26 | openat_save_fail(int errno) | ||
27 | { | ||
28 | mu_error("unable to record current working directory: %s", | ||
29 | mu_strerror(errno)); | ||
30 | exit(EX_OSERR); | ||
31 | } | ||
32 | |||
33 | void | ||
34 | openat_restore_fail(int errno) | ||
35 | { | ||
36 | mu_error("failed to return to initial working directory: %s", | ||
37 | mu_strerror(errno)); | ||
38 | exit(EX_OSERR); | ||
39 | } | ||
40 | |||