mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #301 from dequis/dcc-get-ntfs-temp-bug
dcc-get: close() the temp fd so we don't get ETXTBSY in ntfs mounts
This commit is contained in:
commit
fc3c0a8420
@ -226,6 +226,8 @@ void sig_dccget_connected(GET_DCC_REC *dcc)
|
||||
else
|
||||
ret = fchmod(temphandle, dcc_file_create_mode);
|
||||
|
||||
close(temphandle);
|
||||
|
||||
if (ret != -1) {
|
||||
ret = link(tempfname, dcc->file);
|
||||
|
||||
@ -249,7 +251,6 @@ void sig_dccget_connected(GET_DCC_REC *dcc)
|
||||
|
||||
/* close/remove the temp file */
|
||||
ret_errno = errno;
|
||||
close(temphandle);
|
||||
unlink(tempfname);
|
||||
g_free(tempfname);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user