When receiving a symlink, QFile::link will refuse in case the link already exist. This will cause updates to symlinks, or replacing files with a symlinked version to fail.
Patch stolen from https://github.com/reMarkable/karchive/pull/1
dfaure |
When receiving a symlink, QFile::link will refuse in case the link already exist. This will cause updates to symlinks, or replacing files with a symlinked version to fail.
Patch stolen from https://github.com/reMarkable/karchive/pull/1
Lint Skipped |
Unit Tests Skipped |
I've asked hhartz to create a test file, I'll ping him again on monday when I'm back at work.
src/karchive.cpp | ||
---|---|---|
986 | This is comparing the name of the symlink with the new target. Was this supposed to be looking at the target of the old symlink instead? |