- (djm) Use printf %lld instead of %qd in sftp-server.c. Fix from
Michael Stone <mstone@cs.loyola.edu>
diff --git a/ChangeLog b/ChangeLog
index a51215d..a20e9ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
- (djm) Tweak password expiry checking at suggestion of Kevin Steves
<stevesk@sweden.hp.com>
- (djm) NeXT patch from Ben Lindstrom <mouring@pconline.com>
+ - (djm) Use printf %lld instead of %qd in sftp-server.c. Fix from
+ Michael Stone <mstone@cs.loyola.edu>
20000920
- (djm) Fix bad path substitution. Report from Andrew Miner
diff --git a/sftp-server.c b/sftp-server.c
index c5cd47b..538e5e2 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -545,7 +545,7 @@
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 @@
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 @@
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);