diff options
| author | Dirk Meyer <dinoex@FreeBSD.org> | 2002-03-08 20:51:56 +0000 |
|---|---|---|
| committer | Dirk Meyer <dinoex@FreeBSD.org> | 2002-03-08 20:51:56 +0000 |
| commit | d645ac0bfae0c08873b6f799479638b2f65150e1 (patch) | |
| tree | a5096c66e8f54e58dab8e02a5fbb8500e5653499 /security/openssh/files/patch-sftp-server.c | |
| parent | Fix WWW. (diff) | |
- add defines for comatibility with older FreeBSD releases 3.x and 2.2.8
SHUT_RD, SHUT_WR, SHUT_RDWR
INET_ADDRSTRLEN
- add dirname() from FreeBSD 4.5
- use utimes instead of futimes fore FreeBSD < 4.x
Notes
Notes:
svn path=/head/; revision=55743
Diffstat (limited to 'security/openssh/files/patch-sftp-server.c')
| -rw-r--r-- | security/openssh/files/patch-sftp-server.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/security/openssh/files/patch-sftp-server.c b/security/openssh/files/patch-sftp-server.c new file mode 100644 index 000000000000..09b2b630bf7d --- /dev/null +++ b/security/openssh/files/patch-sftp-server.c @@ -0,0 +1,25 @@ +--- sftp-server.c.orig Wed Feb 13 01:28:13 2002 ++++ sftp-server.c Fri Mar 8 21:15:56 2002 +@@ -614,6 +614,9 @@ + u_int32_t id; + int handle, fd, ret; + int status = SSH2_FX_OK; ++#if defined(__FreeBSD__) && __FreeBSD__ <= 3 ++ char *name; ++#endif + + id = get_int(); + handle = get_handle(); +@@ -634,7 +637,12 @@ + status = errno_to_portable(errno); + } + if (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME) { ++#if defined(__FreeBSD__) && __FreeBSD__ <= 3 ++ name = handle_to_name(handle); ++ ret = utimes(name, attrib_to_tv(a)); ++#else + ret = futimes(fd, attrib_to_tv(a)); ++#endif + if (ret == -1) + status = errno_to_portable(errno); + } |
