Displaying 1 result from an estimated 1 matches for "do_getlink".
Did you mean:
br_getlink
2002 Nov 05
0
[PATCH] Add getlink command to sftp
...***
*** 712,717 ****
--- 712,720 ----
debug3("SSH_FXP_READLINK %s -> %s", path, filename);
+ if (attrib != NULL)
+ *attrib = *a;
+
xfree(longname);
buffer_free(&msg);
***************
*** 719,724 ****
--- 722,774 ----
return(filename);
}
+ int
+ do_getlink(struct sftp_conn *conn, char *path)
+ {
+ char *dest;
+ u_int status = 0;
+ int ret;
+ struct stat statb;
+ char *filename;
+ Attrib *a;
+ Attrib attrib;
+
+ a = do_lstat(conn, path, 0);
+ if (a == NULL || !S_ISLNK(a->perm)) {
+ if (a != NULL)
+ error("%s is not a symlink&...