Displaying 1 result from an estimated 1 matches for "has_nlink".
2016 Jun 02
2
[PATCH] Link count attribute extension
...======================
RCS file: /cvs/src/usr.bin/ssh/sftp-common.c,v
retrieving revision 1.28
diff -u -r1.28 sftp-common.c
--- sftp-common.c 20 Jan 2015 23:14:00 -0000 1.28
+++ sftp-common.c 2 Jun 2016 01:32:02 -0000
@@ -56,6 +56,8 @@
a->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...