Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
rsh
netkit-rsh-0.17-checkdir.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File netkit-rsh-0.17-checkdir.diff of Package rsh
--- rcp/rcp.c +++ rcp/rcp.c @@ -716,6 +716,10 @@ size = size * 10 + (*cp++ - '0'); if (*cp++ != ' ') SCREWUP("size not delimited"); + if ((strchr(cp, '/') != NULL) || (strcmp(cp, "..") == 0)) { + error("rcp: unexpected filename: %s", cp); + exit(1); + } if (targisdir) { static char *namebuf; static int cursize; @@ -734,6 +738,8 @@ np = targ; exists = stat(np, &stb) == 0; if (buf[0] == 'D') { + if (!iamrecursive) + SCREWUP("received directory without -r"); if (exists) { if ((stb.st_mode&S_IFMT) != S_IFDIR) { errno = ENOTDIR;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor