Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Vladort fixes #3

Merged
merged 13 commits into from
Jan 24, 2019
Merged

Vladort fixes #3

merged 13 commits into from
Jan 24, 2019

Conversation

vladortpas
Copy link

Fix file right error, error 102400, error 0000 or ---- and file edit override fail when size of file is under existing file size.

I'm Golang beginner, feel free to fix whatever i made wrong.

Vladort and others added 5 commits January 19, 2019 20:43
Fix file right error, error 102400, error 0000 or ---- and file edit override fail when size of file is under existing file size
os.Create will truncate an existing file, so there is no reason to remove the file first here.

Also you can't make it to that last removed point without a file existing because of the return on (now) line 114.
@DaneEveritt
Copy link
Member

Commited a few fixes and cleaned up some logic. Overall it looks like the core issue was that the file mode being passed in from some SFTP clients was invalid, so now it uses 644 or 755 depending on the item.

Not sure what exactly the issue with the file size was, could you clarify that for me?

@DaneEveritt DaneEveritt merged commit 25a3485 into pterodactyl:master Jan 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants