version 1.17, 2001/02/04 15:32:25 |
version 1.18, 2001/02/04 22:21:19 |
|
|
if (ret == -1) |
if (ret == -1) |
status = errno_to_portable(errno); |
status = errno_to_portable(errno); |
} |
} |
|
if (a->flags & SSH2_FILEXFER_ATTR_UIDGID) { |
|
ret = chown(name, a->uid, a->gid); |
|
if (ret == -1) |
|
status = errno_to_portable(errno); |
|
} |
send_status(id, status); |
send_status(id, status); |
xfree(name); |
xfree(name); |
} |
} |
|
|
} |
} |
if (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME) { |
if (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME) { |
ret = futimes(fd, attrib_to_tv(a)); |
ret = futimes(fd, attrib_to_tv(a)); |
|
if (ret == -1) |
|
status = errno_to_portable(errno); |
|
} |
|
if (a->flags & SSH2_FILEXFER_ATTR_UIDGID) { |
|
ret = fchown(fd, a->uid, a->gid); |
if (ret == -1) |
if (ret == -1) |
status = errno_to_portable(errno); |
status = errno_to_portable(errno); |
} |
} |