Bugzilla – Attachment 168 Details for
Bug 428
sftp could use a command to transfer symlinks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
changes to implement getlink
1 (text/plain), 1.75 KB, created by
gfernandez
on 2002-11-07 01:35:56 AEDT
(
hide
)
Description:
changes to implement getlink
Filename:
MIME Type:
Creator:
gfernandez
Created:
2002-11-07 01:35:56 AEDT
Size:
1.75 KB
patch
obsolete
>diff -u ../openssh-3.4p1/sftp-int.c . >--- ../openssh-3.4p1/sftp-int.c Sun Jun 23 17:27:19 2002 >+++ ./sftp-int.c Mon Nov 4 18:48:34 2002 >@@ -74,6 +74,7 @@ > #define I_SHELL 20 > #define I_SYMLINK 21 > #define I_VERSION 22 >+#define I_GETLINK 23 > > struct CMD { > const char *c; >@@ -91,6 +92,7 @@ > { "exit", I_QUIT }, > { "get", I_GET }, > { "mget", I_GET }, >+ { "getlink", I_GETLINK }, > { "help", I_HELP }, > { "lcd", I_LCHDIR }, > { "lchdir", I_LCHDIR }, >@@ -126,6 +128,7 @@ > printf("chown own path Change owner of file 'path' to 'ow >n'\n"); > printf("help Display this help text\n"); > printf("get remote-path [local-path] Download file\n"); >+ printf("getlink remote-path Download symlink\n"); > printf("lls [ls-options [path]] Display local directory listing\n" >); > printf("ln oldpath newpath Symlink remote file\n"); > printf("lmkdir path Create local directory\n"); >@@ -582,6 +585,7 @@ > case I_CHDIR: > case I_LCHDIR: > case I_LMKDIR: >+ case I_GETLINK: > /* Get pathname (mandatory) */ > if (get_pathname(&cp, path1)) > return(-1); >@@ -683,6 +687,10 @@ > path2 = make_absolute(path2, *pwd); > err = do_symlink(conn, path1, path2); > break; >+ case I_GETLINK: >+ path1 = make_absolute(path1, *pwd); >+ err = do_getlink(conn, path1); >+ break; > case I_RM: > path1 = make_absolute(path1, *pwd); > remote_glob(conn, path1, GLOB_NOCHECK, NULL, &g);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 428
: 168 |
169
|
170
|
171
|
172