summaryrefslogtreecommitdiff
path: root/sftp-server.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-12-21 14:45:46 +1100
committerDamien Miller <djm@mindrot.org>2001-12-21 14:45:46 +1100
commit9f0f5c64bc4b6144e3fed6a7f538f7c21819a492 (patch)
treef79317ab211f59181a61b526f566e9c8cfe70c73 /sftp-server.c
parent89681214ca2f50a1b1ed6164c3afe1ce14995ffc (diff)
- deraadt@cvs.openbsd.org 2001/12/19 07:18:56
[auth1.c auth2.c auth2-chall.c auth-bsdauth.c auth.c authfile.c auth.h] [auth-krb4.c auth-rhosts.c auth-skey.c bufaux.c canohost.c channels.c] [cipher.c clientloop.c compat.c compress.c deattack.c key.c log.c mac.c] [match.c misc.c nchan.c packet.c readconf.c rijndael.c rijndael.h scard.c] [servconf.c servconf.h serverloop.c session.c sftp.c sftp-client.c] [sftp-glob.c sftp-int.c sftp-server.c ssh-add.c ssh-agent.c ssh.c] [sshconnect1.c sshconnect2.c sshconnect.c sshd.8 sshd.c sshd_config] [ssh-keygen.c sshlogin.c sshpty.c sshtty.c ttymodes.c uidswap.c] basic KNF done while i was looking for something else
Diffstat (limited to 'sftp-server.c')
-rw-r--r--sftp-server.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sftp-server.c b/sftp-server.c
index 2ef9753bf..7c8a6b65b 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -22,7 +22,7 @@
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24#include "includes.h" 24#include "includes.h"
25RCSID("$OpenBSD: sftp-server.c,v 1.30 2001/07/31 12:42:50 jakob Exp $"); 25RCSID("$OpenBSD: sftp-server.c,v 1.31 2001/12/19 07:18:56 deraadt Exp $");
26 26
27#include "buffer.h" 27#include "buffer.h"
28#include "bufaux.h" 28#include "bufaux.h"
@@ -144,7 +144,7 @@ handle_init(void)
144{ 144{
145 int i; 145 int i;
146 146
147 for(i = 0; i < sizeof(handles)/sizeof(Handle); i++) 147 for (i = 0; i < sizeof(handles)/sizeof(Handle); i++)
148 handles[i].use = HANDLE_UNUSED; 148 handles[i].use = HANDLE_UNUSED;
149} 149}
150 150
@@ -153,7 +153,7 @@ handle_new(int use, char *name, int fd, DIR *dirp)
153{ 153{
154 int i; 154 int i;
155 155
156 for(i = 0; i < sizeof(handles)/sizeof(Handle); i++) { 156 for (i = 0; i < sizeof(handles)/sizeof(Handle); i++) {
157 if (handles[i].use == HANDLE_UNUSED) { 157 if (handles[i].use == HANDLE_UNUSED) {
158 handles[i].use = use; 158 handles[i].use = use;
159 handles[i].dirp = dirp; 159 handles[i].dirp = dirp;
@@ -771,7 +771,7 @@ process_readdir(void)
771 } 771 }
772 if (count > 0) { 772 if (count > 0) {
773 send_names(id, count, stats); 773 send_names(id, count, stats);
774 for(i = 0; i < count; i++) { 774 for (i = 0; i < count; i++) {
775 xfree(stats[i].name); 775 xfree(stats[i].name);
776 xfree(stats[i].long_name); 776 xfree(stats[i].long_name);
777 } 777 }
@@ -897,7 +897,7 @@ process_readlink(void)
897 send_status(id, errno_to_portable(errno)); 897 send_status(id, errno_to_portable(errno));
898 else { 898 else {
899 Stat s; 899 Stat s;
900 900
901 link[len] = '\0'; 901 link[len] = '\0';
902 attrib_clear(&s.attrib); 902 attrib_clear(&s.attrib);
903 s.name = s.long_name = link; 903 s.name = s.long_name = link;