Commit 36d2d926 authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: ChangeLog:1.341
Rev: src/testsuite/.cvsignore:1.13
Rev: src/userauth.h:1.27
parent 0a568da0
2001-04-08 Niels Mller <nisse@cuckoo.hack.org>
* src/testsuite/Makefile.am (TS_PROGS): Added string-test.
* src/testsuite/macros.m4 (TS_CHECK): New macro.
* src/testsuite/string-test.m4: New tests for string related
functions, currently only lsh_get_cstring.
* src/format.c (ssh_cformat): Deleted. Replaced all uses with
ssh_format.
(make_cstring_l): Deleted.
(make_cstring): Deleted.
(lsh_get_cstring): New function.
* src/werror.c (write_syslog): Don't use make_cstring_l.
* src/unix_user.c (do_verify_password): Use lsh_get_cstring.
(do_read_file): Likewise.
(do_read_file): Likewise.
(format_env_pair): Likewise.
(do_exec_shell): Likewise.
(make_unix_user): Likewise.
(do_lookup_user): Likewise.
* src/unix_interact.c (unix_read_password): Use lsh_get_cstring.
* src/server_session.c (do_spawn_exec): Use lsh_get_cstring.
* src/lsh.h (NUL_TERMINATED): Deleted.
* src/format.h (format_cstring, make_string): Renamed function.
And made it a macro. Updated callers.
* src/adns.c (do_resolve): Use lsh_get_cstring. Don't use
NUL_TERMINATED.
* src/io.c (address_info2sockaddr): Likewise.
(make_local_info): Likewise.
(io_listen_local): Likewise.
(io_connect_local): Likewise.
2001-04-05 Niels Mller <nisse@ehand.com> 2001-04-05 Niels Mller <nisse@ehand.com>
* src/testsuite/functions.sh (run_lsh): Quote the command better. * src/testsuite/functions.sh (run_lsh): Quote the command better.
...@@ -17,7 +58,7 @@ ...@@ -17,7 +58,7 @@
strings leaked. strings leaked.
* src/client_session.c (do_client_session_eof): Use * src/client_session.c (do_client_session_eof): Use
close_fd_nicely. Otherwise we lose data. XXX Fix in 1.2 branch? close_fd_nicely. Otherwise we lose data. FIXED in 1.2 branch.
* src/Makefile.am.in (atoms_gperf.c): Massage gperf output to * src/Makefile.am.in (atoms_gperf.c): Massage gperf output to
reduce the number of compilation warnings. reduce the number of compilation warnings.
...@@ -50,7 +91,6 @@ ...@@ -50,7 +91,6 @@
src/server_userauth.c: Packet handlers should no longer free src/server_userauth.c: Packet handlers should no longer free
packets. packets.
* src/xalloc.c (number_of_strings): Define only if DEBUG_ALLOC. * src/xalloc.c (number_of_strings): Define only if DEBUG_ALLOC.
(lsh_string_alloc): NUL-terminate strings, for simplicity. (lsh_string_alloc): NUL-terminate strings, for simplicity.
(lsh_string_free): Check that string is still NUL-terminated. (lsh_string_free): Check that string is still NUL-terminated.
......
*.pid
*.bb *.bb
*.bbg *.bbg
*.da *.da
*.gcov *.gcov
*.pid
.deps .deps
Makefile Makefile
Makefile.in Makefile.in
...@@ -27,6 +27,8 @@ sha1-test ...@@ -27,6 +27,8 @@ sha1-test
sha1-test.c sha1-test.c
spki-tag-test spki-tag-test
spki-tag-test.c spki-tag-test.c
string-test
string-test.c
temphome temphome
test.out1 test.out1
test.out2 test.out2
......
/*.pid
/*.bb /*.bb
/*.bbg /*.bbg
/*.da /*.da
/*.gcov /*.gcov
/*.pid
/.deps /.deps
/Makefile /Makefile
/Makefile.in /Makefile.in
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
/sha1-test.c /sha1-test.c
/spki-tag-test /spki-tag-test
/spki-tag-test.c /spki-tag-test.c
/string-test
/string-test.c
/temphome /temphome
/test.out1 /test.out1
/test.out2 /test.out2
......
...@@ -47,6 +47,7 @@ struct env_value; ...@@ -47,6 +47,7 @@ struct env_value;
(reply string))) (reply string)))
*/ */
/* FIXME: Perhaps it's better to use a const char * for the value? */
struct env_value struct env_value
{ {
const char *name; const char *name;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment