From f056e23dd6f7fad96afb9e0f5a64dce4f6045cc7 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 23 Sep 2000 14:58:32 +1100 Subject: [PATCH] - (djm) Use printf %lld instead of %qd in sftp-server.c. Fix from Michael Stone --- ChangeLog | 2 ++ sftp-server.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a51215d8b..a20e9ad54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ - (djm) Tweak password expiry checking at suggestion of Kevin Steves - (djm) NeXT patch from Ben Lindstrom + - (djm) Use printf %lld instead of %qd in sftp-server.c. Fix from + Michael Stone 20000920 - (djm) Fix bad path substitution. Report from Andrew Miner diff --git a/sftp-server.c b/sftp-server.c index c5cd47b7d..538e5e267 100644 --- a/sftp-server.c +++ b/sftp-server.c @@ -545,7 +545,7 @@ process_read(void) len = get_int(); off = (((u_int64_t) off_high) << 32) + off_low; - TRACE("read id %d handle %d off %qd len %d", id, handle, off, len); + TRACE("read id %d handle %d off %lld len %d", id, handle, off, len); if (len > sizeof buf) { len = sizeof buf; log("read change len %d", len); @@ -587,7 +587,7 @@ process_write(void) data = get_string(&len); off = (((u_int64_t) off_high) << 32) + off_low; - TRACE("write id %d handle %d off %qd len %d", id, handle, off, len); + TRACE("write id %d handle %d off %lld len %d", id, handle, off, len); fd = handle_to_fd(handle); if (fd >= 0) { if (lseek(fd, off, SEEK_SET) < 0) { @@ -780,7 +780,7 @@ char * ls_file(char *name, struct stat *st) { char buf[1024]; - snprintf(buf, sizeof buf, "0%o %d %d %qd %d %s", + snprintf(buf, sizeof buf, "0%o %d %d %lld %d %s", st->st_mode, st->st_uid, st->st_gid, (long long)st->st_size,(int) st->st_mtime, name); return xstrdup(buf);