aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-12-11 13:25:38 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-12-11 13:25:38 +0000
commit5e84ff9fff526bb0653ead7e12954bd06c280c6d (patch)
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')
-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
@@ -2,2 +2,4 @@ alloca.h
alloca.in.h
+errno.h
+errno.in.h
error.c
@@ -20,2 +22,3 @@ intprops.h
lseek.c
+malloc.c
malloca.c
@@ -32,2 +35,3 @@ stdint.in.h
stdio-impl.h
+stdio-write.c
stdio.h
@@ -36,2 +40,3 @@ stdlib.h
stdlib.in.h
+strdup.c
strerror.c
@@ -39,2 +44,4 @@ string.h
string.in.h
+sysexits.h
+sysexits.in.h
unistd.h

Return to:

Send suggestions and report system problems to the System administrator.