Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177816484
D37253.1795353720.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
720 B
Referenced Files
None
Subscribers
None
D37253.1795353720.diff
View Options
Index: crypto/openssh/sftp.c
===================================================================
--- crypto/openssh/sftp.c
+++ crypto/openssh/sftp.c
@@ -621,14 +621,14 @@
}
static char *
-make_absolute_pwd_glob(const char *p, const char *pwd)
+make_absolute_pwd_glob(char *p, const char *pwd)
{
char *ret, *escpwd;
escpwd = escape_glob(pwd);
if (p == NULL)
return escpwd;
- ret = make_absolute(xstrdup(p), escpwd);
+ ret = make_absolute(p, escpwd);
free(escpwd);
return ret;
}
@@ -641,7 +641,7 @@
glob_t g;
int i, r, err = 0;
- abs_src = make_absolute_pwd_glob(src, pwd);
+ abs_src = make_absolute_pwd_glob(xstrdup(src), pwd);
memset(&g, 0, sizeof(g));
debug3("Looking up %s", abs_src);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 1:22 PM (3 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41908465
Default Alt Text
D37253.1795353720.diff (720 B)
Attached To
Mode
D37253: sftp: avoid leaking path arg in calls to make_absolute_pwd_glob
Attached
Detach File
Event Timeline