Skip to content

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