[ruby-core:90536] [Ruby trunk Feature#15415] [PATCH] fileutils (mv): fall back to copy + unlink on EPERM

From: normalperson@...
Date: 2018-12-15 00:27:48 UTC
List: ruby-core #90536
Issue #15415 has been reported by normalperson (Eric Wong).

----------------------------------------
Feature #15415: [PATCH] fileutils (mv): fall back to copy + unlink on EPERM
https://bugs.ruby-lang.org/issues/15415

* Author: normalperson (Eric Wong)
* Status: Open
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
----------------------------------------
fileutils (mv): fall back to copy + unlink on EPERM

With ext4 encrypted directories, renaming a file from an
unencrypted directory to an encrypted directory gives EPERM.
Fall back to copying and unlink in that case, since it's
similar in spirit to dealing with EXDEV.


I'm not sure if this is a good idea or not; but we'll hit another
EPERM anyways if we can't read or write the file.


---Files--------------------------------
0001-fileutils-mv-fall-back-to-copy-unlink-on-EPERM.patch (1019 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next