Bugzilla – Attachment 1604 Details for
Bug 1555
add attribute extensions to sftp-server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
optimize attribute sending
sftp-server-attr-optimize.patch (text/plain), 1.88 KB, created by
Miklos Szeredi
on 2009-02-13 22:11:41 AEDT
(
hide
)
Description:
optimize attribute sending
Filename:
MIME Type:
Creator:
Miklos Szeredi
Created:
2009-02-13 22:11:41 AEDT
Size:
1.88 KB
patch
obsolete
>--- > sftp-common.c | 18 ++++++++++++------ > sftp-server.c | 7 +++++++ > 2 files changed, 19 insertions(+), 6 deletions(-) > >Index: ssh/sftp-common.c >=================================================================== >--- ssh.orig/sftp-common.c 2009-02-12 14:11:31.000000000 +0100 >+++ ssh/sftp-common.c 2009-02-12 15:54:13.000000000 +0100 >@@ -87,12 +87,18 @@ stat_to_attrib(const struct stat *st, At > a->mtime = st->st_mtime; > a->ext_flags |= SSH2_FXE_EXTATTR_CTIME; > a->ctime = st->st_ctime; >- a->ext_flags |= SSH2_FXE_EXTATTR_ATIMENSEC; >- a->atimensec = st->st_atimensec; >- a->ext_flags |= SSH2_FXE_EXTATTR_MTIMENSEC; >- a->mtimensec = st->st_mtimensec; >- a->ext_flags |= SSH2_FXE_EXTATTR_CTIMENSEC; >- a->ctimensec = st->st_ctimensec; >+ if (st->st_atimensec) { >+ a->ext_flags |= SSH2_FXE_EXTATTR_ATIMENSEC; >+ a->atimensec = st->st_atimensec; >+ } >+ if (st->st_mtimensec) { >+ a->ext_flags |= SSH2_FXE_EXTATTR_MTIMENSEC; >+ a->mtimensec = st->st_mtimensec; >+ } >+ if (st->st_ctimensec) { >+ a->ext_flags |= SSH2_FXE_EXTATTR_CTIMENSEC; >+ a->ctimensec = st->st_ctimensec; >+ } > a->ext_flags |= SSH2_FXE_EXTATTR_DEV; > a->dev = st->st_dev; > a->ext_flags |= SSH2_FXE_EXTATTR_INO; >Index: ssh/sftp-server.c >=================================================================== >--- ssh.orig/sftp-server.c 2009-02-12 14:37:39.000000000 +0100 >+++ ssh/sftp-server.c 2009-02-12 16:00:10.000000000 +0100 >@@ -1271,6 +1271,13 @@ process_extended_attrconfig(u_int32_t id > mask = get_int(); > dir_ext_attr_mask = mask & SUPPORTED_EXT_ATTR; > >+ if ((stat_ext_attr_mask & SSH2_FXE_EXTATTR_ATIME) && >+ (stat_ext_attr_mask & SSH2_FXE_EXTATTR_MTIME)) >+ stat_attr_mask &= ~SSH2_FILEXFER_ATTR_ACMODTIME; >+ if ((dir_ext_attr_mask & SSH2_FXE_EXTATTR_ATIME) && >+ (dir_ext_attr_mask & SSH2_FXE_EXTATTR_MTIME)) >+ dir_attr_mask &= ~SSH2_FILEXFER_ATTR_ACMODTIME; >+ > debug3("request %u: attrconfig", id); > > send_attrconfig_reply(id);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1555
:
1601
|
1602
|
1603
| 1604 |
1971