Bugzilla – Attachment 174 Details for
Bug 431
scp could prevent write access to server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
adds readonly flag to scp
8 (text/plain), 742 bytes, created by
gfernandez
on 2002-11-08 00:36:38 AEDT
(
hide
)
Description:
adds readonly flag to scp
Filename:
MIME Type:
Creator:
gfernandez
Created:
2002-11-08 00:36:38 AEDT
Size:
742 bytes
patch
obsolete
>diff -u ../openssh-3.4p1/scp.c . >--- ../openssh-3.4p1/scp.c Thu Jun 20 20:41:52 2002 >+++ ./scp.c Tue Nov 5 10:42:48 2002 >@@ -122,6 +122,9 @@ > /* This is set to zero if the progressmeter is not desired. */ > int showprogress = 1; > >+/* deny client write operations */ >+int readonly = 0; >+ > /* This is the program to execute for the secured connection. ("ssh" or -S) */ > char *ssh_program = _PATH_SSH_PROGRAM; > >@@ -307,6 +310,10 @@ > exit(errs != 0); > } > if (tflag) { >+ if (readonly) { >+ run_err("permission denied"); >+ exit(1); >+ } > /* Receive data. */ > sink(argc, argv); > exit(errs != 0);
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 431
: 174