search for: ssh2_filexfer_attr_extend

Displaying 2 results from an estimated 2 matches for "ssh2_filexfer_attr_extend".

2016 Jun 02
2
[PATCH] Link count attribute extension
...->perm = 0; a->atime = 0; a->mtime = 0; + a->has_nlink = 0; + a->nlink = 0; } /* Convert from struct stat to filexfer attribs */ @@ -74,6 +76,9 @@ a->flags |= SSH2_FILEXFER_ATTR_ACMODTIME; a->atime = st->st_atime; a->mtime = st->st_mtime; + a->flags |= SSH2_FILEXFER_ATTR_EXTENDED; + a->has_nlink = 1; + a->nlink = st->st_nlink; } /* Convert from filexfer attribs to struct stat */ @@ -94,6 +99,11 @@ st->st_atime = a->atime; st->st_mtime = a->mtime; } + if (a->flags & SSH2_FILEXFER_ATTR_EXTENDED) { + if (a->has_nlink) { + st->...
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
..._FXE_EXTATTR_CTIME) + a->ctime = buffer_get_int64(b); + if (a->ext_flags & SSH2_FXE_EXTATTR_CTIMENSEC) + a->ctimensec = buffer_get_int(b); } /* Decode attributes in buffer */ @@ -115,26 +203,70 @@ decode_attrib(Buffer *b) } /* vendor-specific extensions */ if (a.flags & SSH2_FILEXFER_ATTR_EXTENDED) { - char *type, *data; + char *type; + void *data; int i, count; + u_int datalen; count = buffer_get_int(b); for (i = 0; i < count; i++) { type = buffer_get_string(b, NULL); - data = buffer_get_string(b, NULL); + data = buffer_get_string_ptr(b, &datalen); debug3...