weird bug

main
m455 2019-03-11 21:43:35 -04:00
parent 9765f13fba
commit b5e550d331
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,8 @@ Now the default directory and todo list file have better default permissions:
# Todos # Todos
- **Really weird bug to solve**: `~/.rodo/todo.txt`'s file permissions change from `rw-------` to `rw-rw-r--` or `rw-rw-rw` after being modified - **Really weird bug to solve**: `~/.rodo/todo.txt`'s file permissions change from `rw-------` to `rw-rw-r--` or `rw-rw-rw` after being modified
- For example, run `touch somefile.txt` to create a file - For example, run `touch somefile.txt` to create a file in your home directory
- Open a Racket REPL while in your home directory
- Run the following to set `600` file permissions on the file: - Run the following to set `600` file permissions on the file:
```racket ```racket
(file-or-directory-permissions "somefile.txt" #o600) (file-or-directory-permissions "somefile.txt" #o600)
@ -33,6 +34,7 @@ Now the default directory and todo list file have better default permissions:
(display-to-file "this is a test" "somefile.txt" #:mode 'text #:exists 'replace) (display-to-file "this is a test" "somefile.txt" #:mode 'text #:exists 'replace)
(file-or-directory-permissions "somefile.txt" #o600)) (file-or-directory-permissions "somefile.txt" #o600))
``` ```
- Unfortunately the above solution leaves the file readable for a split second, which would be enough for another program to read information in the files
- Add color option to `config.rkt` file - Add color option to `config.rkt` file
- Encrypt `todo.txt` file - Encrypt `todo.txt` file
- Add note on `.bash_history` about items being added here before going into the `todo.txt` file - Add note on `.bash_history` about items being added here before going into the `todo.txt` file