File::link using CIFS raises Errno::EEXIST error if the 'old_file' is open
while Matz Ruby raises Errno::ETXTBSY
----------------------------------------------------------------------------------------------------------------
Key: JRUBY-3063
URL: http://jira.codehaus.org/browse/JRUBY-3063
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.4
Environment: Ubuntu 8.04
jruby 1.1.4 (ruby 1.8.6 patchlevel 114) (2008-08-28 rev 7570) [i386-java]
Reporter: Brian Tatnall
Assignee: Thomas E Enebo
jruby -e 'f=File.open("/mnt/cifs//test.file",
File::WRONLY|File::CREAT|File::EXCL, 0644); File::link("/mnt/cifs/test.file",
"/mnt/cifs/test2.file")'
-e:1: File exists - File exists - /mnt/cifs/test.file or /mnt/cifs/test2.file
(Errno::EEXIST)
Problem doesn't exits when the pathname is /tmp/
ruby -e 'f=File.open("/mnt/cifs//test.file",
File::WRONLY|File::CREAT|File::EXCL, 0644); File::link("/mnt/cifs/test.file",
"/mnt/cifs/test2.file")'
-e:1:in `link': Text file busy - /mnt/cifs/test.file or /mnt/cifs/test2.file
(Errno::ETXTBSY)
No idea how reproducible this is.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email