ChangeLog 5.38 KB
Newer Older
Pontus Freyhult's avatar
Pontus Freyhult committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
2002-03-25  Pontus Skld  <pont@soua.net>

	* buffer.c (sftp_read_packet): Loop to read data.
	(sftp_get_data): Likewise.
	(sftp_write_packet): Loop to write data.

	* sftp_c.c (sftp_ls_main): Check return values from
	sftp_get_string.

	* sftp-test-client.c (fork_server): Use fds, not FILE*s.

	* sftp-server.c (sftp_init): Use fds, not FILE*s.
	(main): Use fds STDIN_FILENO and STDOUT_FILENO instead of FILE*s
	stdin and stdout.

	* buffer.c: We need unistd.h to have read and write defined. And
	we want errno to, so we need errno.h
	(sftp_make_input): Use fd, not FILE*
	(sftp_make_output): Likewise.	

	* sftp_bind.c (lsftp_close_connection): Use fd_to_transport and
	fd_from_transport instead of to_transport and from_transport.

	* configure.ac (CPPFLAGS): use AC_DEFINE_UNQUOTED instead of
	putting options for before and after in CPPFLAGS. Solves problem
	with spaces in before- and after-opts.
 
	* sftp_bind.c (lsftp_open_connection): Dont't use FILE* but fds
	directly.
	(lsftp_handshake): Use read instead of fread, and pass fds to
	sftp_make_input and sftp_make_output.

	* buffer.c (struct sftp_input): Use fd instead of FILE*.
	(struct sftp_output): Likewise.
	(sftp_get_data): Use read instead of fread.
	(sftp_read_packet): Likewise.
	(sftp_write_packet): Use write instead of fwrite.

	* buffer.h: Changed prototype of sftp_make_input and
	sftp_make_output to use fds instead of files.

Pontus Freyhult's avatar
Pontus Freyhult committed
42
43
2002-03-24  Pontus Skld  <pont@soua.net>

Pontus Freyhult's avatar
Pontus Freyhult committed
44
45
46
	* configure.ac: Added --no-pty to default options if we're using
	lsh(g).

Pontus Freyhult's avatar
Pontus Freyhult committed
47
48
	* commands.c (com_quit): Only call com_close if connected.

Pontus Freyhult's avatar
Pontus Freyhult committed
49
50
51
52
2002-03-23  Pontus Skld  <pont@soua.net>

	* configure.ac: Removed -G from default after options.

Pontus Freyhult's avatar
Pontus Freyhult committed
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
2002-03-23  Pontus Skld  <pont@it.uu.se>

	* configure.ac (termcap): Added check for libtermcap. This should
	help systems with a dynamically linked libreadline that depends on
	libtermcap.

2002-03-21  Pontus Skld  <pont@soua.net>

	* configure.ac: Almost completely rewrote the checks for readline
	and history, now actually uses the results of the library checks.

	* rl.c: Use WITH_READLINE and WITH_HISTORY instead of header
	existence.
	
	* rl.h: Use <readline.h> and <history.h> if available.

Pontus Freyhult's avatar
Pontus Freyhult committed
69
70
71
72
73
2002-03-19  Pontus Skld  <pont@it.uu.se>

	* Makefile.am: sftp-server should go to sbin (or should it go to
	libexec? Not bin anyway).

Niels Möller's avatar
Niels Möller committed
74
75
76
2002-03-18  Niels Mller  <nisse@lysator.liu.se>

	* commands.c (com_umask): Use unsigned char.
77
78
	(com_chown): Likewise.
	(com_chgrp): Likewise.
Niels Möller's avatar
Niels Möller committed
79
80
	(handle_command): Unsigned char argument.

Pontus Freyhult's avatar
   
Pontus Freyhult committed
81
82
83
84
85
86
2002-03-14  Pontus  <pont@it.uu.se>

	* configure.ac: Changed version number from 1.0 to 1.0-pre to make
	sure noone thinks "to highly" of the code. Also removed debug code
	that shouldn't have been checked in.

Niels Möller's avatar
Niels Möller committed
87
88
89
90
2002-02-27  Niels Mller  <nisse@cuckoo.hack.org>

	* gnu_stuff.c: Include stdlib.h and string.h.

91
92
2002-02-25  Pontus  <pont@it.uu.se>

93
94
95
96
97
98
99
	* lsftp.c (main): Readded support for GNU-thingies (was lost
	somehow some time ago).

	* gnu_stuff.c (lsftp_welcome): Included Niels in welcome message.
	(version_option): dito.
	(do_gnu_stuff): New function to check for GNU-thingies.
	
100
101
102
103
	* configure.ac: Added ugly fix to detect if we're part of the main
	lsh distribution. If we are, assume $bindir/lshg works
	satisfactionary.
	
104
105
106
107
108
109
110
111
112
113
114
115
116
117
	* sftp_bind.c (lsftp_install_lsftp_cb): Return a pointer to the
	callback instead.
	(lsftp_do_rm): Adopted for new use of lsftp_install_lsftp_cb.
	(lsftp_do_get): dito.
	(lsftp_do_ls): dito.
	(lsftp_do_chmod): dito.
	(lsftp_do_mv): dito.
	(lsftp_do_realpath): dito.
	(string_comparer): Changed type for arguments from char** to const
	void*.

	* sftp_bind.h: Changed return type of lsftp_install_lsftp_cb from
	int to struct lsftp_callback*.

118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
	* sftp_bind.c (lsftp_lsftp_cb_init): Fixed a bug using the same
	memory both for sftp_cbs and lsftp_cbs, mumble!

2002-02-24  Pontus  <pont@it.uu.se>

	* sftp_bind.c (lsftp_remove_lsftp_cb): Use lsftp_nullcb to clean
	out callback.
	(lsftp_handle_packet): Changed variable i (used twice) to r.

	* sftp_bind.h: New function lsftp_nullcb.

	* sftp_bind.c (lsftp_compact_sftp_cbs): Fixed a bug that would
	loose callbacks before a hole if there were any more.
	(lsftp_compact_lsftp_cbs): Fixed the same bug for struct
	lsftp_callbacks.
	(lsftp_handle_packet): Clean out old state after callbacks, should
	hopefully make things more robust.

	(lsftp_nullcb): New function to clean a struct lsftp_callback.

	* dc.c (lsftp_dc_init): Check that malloc succeeded before using
	the memory (duh!).
	
	* sftp_bind.c: Removed obsolete default callback array sizes.

	* dc.c: Removed obsolete default dircache size.

	* lsftp.c (main): Always init the callbacks.

	* sftp_bind.c (lsftp_lsftp_cb_init): Also clear option flags.

	* lsftp.c (main): Added some comments.

	* sftp_bind.c (lsftp_do_put): Added some comments.

153
154
155
156
157
2002-02-22  Pontus  <pont@it.uu.se>

	* configure.ac (lsh_cv_c_attribute): Removed obsolete checks for
	behaviour of stat and lstat.

158
159
160
161
162
2002-02-12  Pontus  <pont@it.uu.se>

	* commands.c (com_mv): Didn't properly check for error in return value of
	lsftp_dc_r_isdir.

163
164
2002-02-11  Pontus  <pont@it.uu.se>

165
166
167
168
169
170
171
	* sftp-server.c (sftp_process_realpath): Added deugging message.
	(sftp_process): Added debugging message.
	(sftp_process_symlink): Added debugging message.

	* buffer.c (sftp_read_packet): If called with data left, flush
	(read and throw away) remaining data.

172
173
174
175
176
	* configure.ac: Created new configure.ac as a merge of the
	configure.in from lsftp and the sftp package.

	* Started new Changelog in sftp.