Skip to content

Issue #4 Broken File Permissions during Usage #5

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KexinLu
Copy link

@KexinLu KexinLu commented Aug 24, 2017

Cause: we make a copy of the file then format the copied file, but
this file's owner ship and permission are not preserved.

Solutions tried:

  1. Investigated vim script's options to preserve file onwership while write a file, it seems to be not possible.
  2. Investigated using cp -a or cp -p, unable to preserve owner.

Solution: overwrite file content of current file directly

Cause: we make a copy of the file then format the copied file, but
this file's owner ship and permission are not preserved.

Solution: overwrite file content of current file directly
@KexinLu
Copy link
Author

KexinLu commented Aug 24, 2017

please decline this PR, noticed issue while testing

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.

2 participants