Project

General

Profile

Feature #15415

[PATCH] fileutils (mv): fall back to copy + unlink on EPERM

Added by normalperson (Eric Wong) 5 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:90536]

Description

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

Associated revisions

Revision 7d3d8e79
Added by hsbt (Hiroshi SHIBATA) 2 months ago

fall back to copy + unlink on EPERM

[Feature #15415][ruby-core:90536]

Co-authored-by: Eric Wong normalperson@yhbt.net

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 67212
Added by hsbt (Hiroshi SHIBATA) 2 months ago

fall back to copy + unlink on EPERM

[Feature #15415][ruby-core:90536]

Co-authored-by: Eric Wong normalperson@yhbt.net

History

#1

Updated by hsbt (Hiroshi SHIBATA) 4 months ago

  • Status changed from Open to Assigned
#2

Updated by hsbt (Hiroshi SHIBATA) 2 months ago

  • Status changed from Assigned to Closed

Applied in changeset trunk|r67212.


fall back to copy + unlink on EPERM

[Feature #15415][ruby-core:90536]

Co-authored-by: Eric Wong normalperson@yhbt.net

Also available in: Atom PDF