search for: process_extended_link

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

2009 Feb 12
2
[patch] hard link protocol extension for sftp
...t;); /* version */ + /* link extension */ + buffer_put_cstring(&msg, "link at openssh.com"); + buffer_put_cstring(&msg, "1"); /* version */ send_msg(&msg); buffer_free(&msg); } @@ -1153,6 +1156,23 @@ process_extended_fstatvfs(u_int32_t id) } static void +process_extended_link(u_int32_t id) +{ + char *oldpath, *newpath; + + oldpath = get_string(NULL); + newpath = get_string(NULL); + debug3("request %u: link", id); + logit("link old \"%s\" new \"%s\"", oldpath, newpath); + if (link(oldpath, newpath) == -1) + send_status(id, errno_t...
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
This patch adds all the missing commonly used UNIX attributes: st_dev, st_ino, st_nlink, st_rdev, st_blocks, st_blksize, st_ctime. In addition it extends st_atime and st_mtime to 64bits, and adds nanosecond resolution to all three timestamps. This is implemented as an extension to the ATTR message. This patch alone is sufficient for SSHFS to be able to use these attributes. The following two