Comments (4)
谢谢你的提醒:),我认为的确会存在这个问题。
因为filelist一般情况下会包括"."这一项,我需要先去看一下原版rsync里面怎么处理这种情况。
这个项目设计上是想要简化rsync部分的职责,把文件处理等复杂的东西交给storage处理。现阶段其实还并不安全,例如对方发送了"../aVirus"可能会把文件写到某个的地方。
from rsync-os.
你再仔细看一下那个 for 循环🤔
要删除的文件是 localList[deleteList[i]]
而不是 localList[i]
from rsync-os.
嗯,是的。我原来想写的是localList[deleteList[i]]
,但我写错了,变成了删除filelist前len(deleteList)项了。
from rsync-os.
已合并你的PR,谢谢!
from rsync-os.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rsync-os.