Git Product home page Git Product logo

Comments (4)

kaiakz avatar kaiakz commented on May 31, 2024

谢谢你的提醒:),我认为的确会存在这个问题。

因为filelist一般情况下会包括"."这一项,我需要先去看一下原版rsync里面怎么处理这种情况。

这个项目设计上是想要简化rsync部分的职责,把文件处理等复杂的东西交给storage处理。现阶段其实还并不安全,例如对方发送了"../aVirus"可能会把文件写到某个的地方。

from rsync-os.

sihuan avatar sihuan commented on May 31, 2024

你再仔细看一下那个 for 循环🤔
要删除的文件是 localList[deleteList[i]] 而不是 localList[i]

from rsync-os.

kaiakz avatar kaiakz commented on May 31, 2024

嗯,是的。我原来想写的是localList[deleteList[i]],但我写错了,变成了删除filelist前len(deleteList)项了。

from rsync-os.

kaiakz avatar kaiakz commented on May 31, 2024

已合并你的PR,谢谢!

from rsync-os.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.