summaryrefslogtreecommitdiffabout
path: root/lib
authorSergey Poznyakoff <gray@gnu.org.ua>2008-12-11 13:25:38 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2008-12-11 13:25:38 (GMT)
commit5e84ff9fff526bb0653ead7e12954bd06c280c6d (patch) (side-by-side diff)
tree5442636dc7e1df2a0cc589411102f3932c95b601 /lib
parenta4b325f89b00386a1b0f809c6b793cb9f2b368c8 (diff)
downloadanubis-5e84ff9fff526bb0653ead7e12954bd06c280c6d.tar.gz
anubis-5e84ff9fff526bb0653ead7e12954bd06c280c6d.tar.bz2
Fix option handling, memory leaks and fixed buffer size bugs.
* src/Makefile.am (anubisadm_SOURCES): Add new files. (anubisusr_SOURCES): Add new files. * src/anubisadm.h: New file. * src/adm.opt: New file. * src/anubisusr.h: New file. * src/usr.opt: New file. * src/anubisadm.c: Remove command line option parsing. See adm.opt. * src/anubisusr.c: Remove command line option parsing. See usr.opt. (smtp_get_reply): Use stream_getline, this fixes buffer size problems. * src/env.opt: Fix argument quoting. * src/errs.c (hostname_error): Argument is const. * src/gdbm.c, src/gpg.c, src/guile.c, src/proclist.c, src/transmode.c: Minor change. * src/getopt.m4: Import from Dico. * src/headers.h (stream_getline): New prototype. (hostname_error): Argument is const. * src/main.c (copyright): Remove. (xalloc_die): Call abort to pacify gcc. * src/net.c (recvline): Rewrite using stream_getline. This also fixes memory leak. * src/stream.c (stream_readline): Do not insert \r before \n. This is impossible to do correctly without a proper buffering scheme. (stream_getline): New function. * src/tunnel.c: Remove CRLF after a call to recvline. (transfer_command): Compensate for this.
Diffstat (limited to 'lib') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/.cvsignore7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/.cvsignore b/lib/.cvsignore
index 4f0ac07..628abc5 100644
--- a/lib/.cvsignore
+++ b/lib/.cvsignore
@@ -1,5 +1,7 @@
alloca.h
alloca.in.h
+errno.h
+errno.in.h
error.c
error.h
exitfail.c
@@ -18,6 +20,7 @@ gettext.h
gnulib.mk
intprops.h
lseek.c
+malloc.c
malloca.c
malloca.h
malloca.valgrind
@@ -30,13 +33,17 @@ stdbool.in.h
stdint.h
stdint.in.h
stdio-impl.h
+stdio-write.c
stdio.h
stdio.in.h
stdlib.h
stdlib.in.h
+strdup.c
strerror.c
string.h
string.in.h
+sysexits.h
+sysexits.in.h
unistd.h
unistd.in.h
wchar.h

Return to:

Send suggestions and report system problems to the System administrator.