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

Preventing destroying of symbolic/hard links in Windows OS. #1270

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/document.c
Expand Up @@ -1959,7 +1959,7 @@ static gchar *write_data_to_disk(const gchar *locale_filename,
errno = 0;
fp = fopen(locale_filename, "r+b"); // truncate to data_length + write_data instead of new_file + write_data
if(errno==ENOENT) // if saved document not exist, create document
file = fopen(locale_filename,"wb");
fp = fopen(locale_filename,"wb");
if (fp == NULL)
{
save_errno = errno;
Expand Down