Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rsync command to linux-4.14 aswell #78

Open
wants to merge 3 commits into
base: linux-4.14
Choose a base branch
from
Open

Conversation

Crazyhead90
Copy link

No description provided.

Marcin Czekajło added 2 commits March 27, 2018 13:49
Updated Ubuntu base version
Added missing command
@Crazyhead90
Copy link
Author

@bamarni

Changed created file permissions from 644 (`-w----r--`) to 0644 (`rw-r--r--`).

PoC:
```
dc@jhtc:~/gogo/openfile$ cat main.go
package main

import "os"

func main() {
    os.OpenFile("644", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 644)
    os.OpenFile("0644", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
}
dc@jhtc:~/gogo/openfile$ go run main.go
dc@jhtc:~/gogo/openfile$ ls -la
total 12
drwxrwxr-x 2 dc dc 4096 Jun  9 17:03 .
drwxrwxr-x 3 dc dc 4096 Jun  9 17:02 ..
-rw-r--r-- 1 dc dc    0 Jun  9 17:03 0644
--w----r-- 1 dc dc    0 Jun  9 17:03 644
-rw-rw-r-- 1 dc dc  173 Jun  9 17:03 main.go
```
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.

None yet

2 participants