GNOME Bugzilla – Bug 682298
Don't fail for EPERM when hardlinking
Last modified: 2012-08-20 21:03:07 UTC
As the manual page doesn't say, but the in-code kernel documentation shows, hardlinking for normal users can fail for a variety of reasons (including very common situations such as non regular file or non writable file), if the owner of the file does not match the user linking (e.g. when checking out a shadow repo with a root- owned master). If that happens, fail back silently to copying instead of aborting the whole operation.
Created attachment 221898 [details] [review] Don't fail for EPERM when hardlinking
Review of attachment 221898 [details] [review]: Ah, yes; makes sense. You can tell I haven't done the shadow-repo import in a while...been doing whole-system builds locally.
Attachment 221898 [details] pushed as 1057f82 - Don't fail for EPERM when hardlinking