-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove misleading 'rm' error message (#10)
Problem: When running a Session as a different user on posix systems you will see a benign, but misleading, error message in the log that looks like: ``` rm: cannot remove '/tmp/openjd/session-name': Permission denied ``` This is caused by our two-phase cleanup of the Session working directory. We start with a cross-user 'rm -rf' to delete everything in the directory, and then do a same-user recursive delete. So, the working directory is getting cleaned up but there is this error in logs that is misleading. Solution: The `rm -rf` just needs to be changed to `rm -rf <dir>/*` from `rm -rf <dir>`. Signed-off-by: Daniel Neilson <[email protected]>
- Loading branch information
Showing
4 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,6 @@ build = "hatch build" | |
|
||
[envs.codebuild.env-vars] | ||
PIP_INDEX_URL="" | ||
|
||
[envs.container.env-vars] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters