Displaying 1 result from an estimated 1 matches for "ssh_err_message_incomplet".
Did you mean:
ssh_err_message_incomplete
2016 Jun 02
2
[PATCH] Link count attribute extension
...t->st_nlink = a->nlink;
+ }
+ }
}
/* Decode attributes in buffer */
@@ -138,6 +148,15 @@
return r;
debug3("Got file attribute \"%.100s\" len %zu",
type, dlen);
+ if (strcmp(type, SFTP_EXT_ATTR_LINK_COUNT) == 0) {
+ if (dlen < 8) {
+ return SSH_ERR_MESSAGE_INCOMPLETE;
+ free(type);
+ free(data);
+ }
+ a->has_nlink = 1;
+ a->nlink = PEEK_U64(data);
+ }
free(type);
free(data);
}
@@ -170,6 +189,24 @@
if ((r = sshbuf_put_u32(b, a->atime)) != 0 ||
(r = sshbuf_put_u32(b, a->mtime)) != 0)
return r;
+ }
+ if (a-&...