Skip to content

clientupdate: do not recursively delete dirs in cleanupOldDownloads#10093

Merged
tylersmalley merged 1 commit intomainfrom
awly/clientupdate-cleanup-non-recursive
Nov 2, 2023
Merged

clientupdate: do not recursively delete dirs in cleanupOldDownloads#10093
tylersmalley merged 1 commit intomainfrom
awly/clientupdate-cleanup-non-recursive

Conversation

@awly
Copy link
Copy Markdown
Member

@awly awly commented Nov 2, 2023

In case there's a wild symlink in one of the target paths, we don't want to accidentally delete too much. Limit cleanupOldDownloads to deleting individual files only.

Updates #10082

@awly awly requested review from bradfitz and tylersmalley November 2, 2023 19:22
@awly awly force-pushed the awly/clientupdate-cleanup-non-recursive branch from 46d183b to e6c2ab5 Compare November 2, 2023 19:31
@awly awly requested a review from bradfitz November 2, 2023 19:32
@awly awly force-pushed the awly/clientupdate-cleanup-non-recursive branch from e6c2ab5 to 53861ac Compare November 2, 2023 19:36
@awly awly requested a review from tylersmalley November 2, 2023 19:36
@awly awly force-pushed the awly/clientupdate-cleanup-non-recursive branch from 53861ac to 69db97a Compare November 2, 2023 20:00
In case there's a wild symlink in one of the target paths, we don't want
to accidentally delete too much. Limit `cleanupOldDownloads` to deleting
individual files only.

Updates #10082

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
@awly awly force-pushed the awly/clientupdate-cleanup-non-recursive branch from 69db97a to 696c309 Compare November 2, 2023 20:09
@tylersmalley tylersmalley merged commit 7145016 into main Nov 2, 2023
@tylersmalley tylersmalley deleted the awly/clientupdate-cleanup-non-recursive branch November 2, 2023 20:29
tylersmalley pushed a commit that referenced this pull request Nov 2, 2023
…10093)

In case there's a wild symlink in one of the target paths, we don't want
to accidentally delete too much. Limit `cleanupOldDownloads` to deleting
individual files only.

Updates #10082

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
(cherry picked from commit 7145016)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants