20010225
- (djm) Use %{_libexecdir} rather than hardcoded path in RPM specfile
Patch from Adrian Ho <lexfiend@usa.net>
+ - (bal) Replace 'unsigned long long' to 'u_int64_t' since not every
+ platform defines u_int64_t as being that.
20010224
- (bal) Missed part of the UNIX sockets patch. Patch by Corinna
buffer_put_int(&msg, COPY_SIZE);
send_msg(fd_out, &msg);
debug3("Sent message SSH2_FXP_READ I:%d O:%llu S:%u",
- id, (unsigned long long)offset, COPY_SIZE);
+ id, (u_int64_t)offset, COPY_SIZE);
buffer_clear(&msg);
len, COPY_SIZE);
debug3("In read loop, got %d offset %llu", len,
- (unsigned long long)offset);
+ (u_int64_t)offset);
if (atomicio(write, local_fd, data, len) != len) {
error("Couldn't write to \"%s\": %s", local_path,
strerror(errno));
buffer_put_string(&msg, data, len);
send_msg(fd_out, &msg);
debug3("Sent message SSH2_FXP_WRITE I:%d O:%llu S:%u",
- id, (unsigned long long)offset, len);
+ id, (u_int64_t)offset, len);
status = get_status(fd_in, id);
if (status != SSH2_FX_OK) {
goto done;
}
debug3("In write loop, got %d offset %llu", len,
- (unsigned long long)offset);
+ (u_int64_t)offset);
offset += len;
}
len = get_int();
TRACE("read id %d handle %d off %llu len %d", id, handle,
- (unsigned long long)off, len);
+ (u_int64_t)off, len);
if (len > sizeof buf) {
len = sizeof buf;
log("read change len %d", len);
data = get_string(&len);
TRACE("write id %d handle %d off %llu len %d", id, handle,
- (unsigned long long)off, len);
+ (u_int64_t)off, len);
fd = handle_to_fd(handle);
if (fd >= 0) {
if (lseek(fd, off, SEEK_SET) < 0) {
if (sz == 0)
tbuf[0] = '\0';
snprintf(buf, sizeof buf, "%s %3d %-8.8s %-8.8s %8llu %s %s", mode,
- st->st_nlink, user, group, (unsigned long long)st->st_size, tbuf, name);
+ st->st_nlink, user, group, (u_int64_t)st->st_size, tbuf, name);
return xstrdup(buf);
}