diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2010-12-04 00:18:02 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2010-12-04 00:18:02 +0000 |
commit | 3bf9288cc7c36161011d1f665b678d5914f7d6ed (patch) | |
tree | f506f1fae3b1f4bfd0ab0636e6d9424939bc69f3 /usr.bin/ssh/sftp-client.h | |
parent | 054dc1c0cd58a51d35229b6bd5bd8cf4f60c342d (diff) |
add a protocol extension to support a hard link operation. It is
available through the "ln" command in the client. The old "ln"
behaviour of creating a symlink is available using its "-s" option
or through the preexisting "symlink" command; based on a patch from
miklos AT szeredi.hu in bz#1555; ok markus@
Diffstat (limited to 'usr.bin/ssh/sftp-client.h')
-rw-r--r-- | usr.bin/ssh/sftp-client.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ssh/sftp-client.h b/usr.bin/ssh/sftp-client.h index 145fc38ee11..aef54ef49dd 100644 --- a/usr.bin/ssh/sftp-client.h +++ b/usr.bin/ssh/sftp-client.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp-client.h,v 1.19 2010/09/22 22:58:51 djm Exp $ */ +/* $OpenBSD: sftp-client.h,v 1.20 2010/12/04 00:18:01 djm Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> @@ -94,6 +94,9 @@ int do_statvfs(struct sftp_conn *, const char *, struct sftp_statvfs *, int); /* Rename 'oldpath' to 'newpath' */ int do_rename(struct sftp_conn *, char *, char *); +/* Link 'oldpath' to 'newpath' */ +int do_hardlink(struct sftp_conn *, char *, char *); + /* Rename 'oldpath' to 'newpath' */ int do_symlink(struct sftp_conn *, char *, char *); |