irssi-import / bugs.irssi.org

bugs.irssi.org archive
https://github.com/irssi/irssi/issues
0 stars 0 forks source link

DCC - Download fails to create downloaded file on NTFS mount #867

Closed irssibot closed 8 years ago

irssibot commented 12 years ago

When trying to download a file to an NTFS mount, the following error occurs:

"DCC can't create file /mnt/ntfs_mount/filename: Text file busy"

I think the problem lies in the sig_dccget_connected function in the 'irc/dcc/dcc-get.c' file on line 239 for the following reason:

We open the file 'tempfname' earlier in the function and its still open by the time we get to rename(). So rename fails because the file is Locked (not closed).

NOTE: We fallback to rename because link() fails (probably because this filesystem does not support hardlinks. This is a virtualbox mount share from windows, mounted using vboxsf).

irssibot commented 8 years ago

This has been fixed in https://github.com/irssi/irssi/pull/301