diff options
-rw-r--r-- | src/gsystem-shutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsystem-shutil.c b/src/gsystem-shutil.c index e8e6ca3..27564dc 100644 --- a/src/gsystem-shutil.c +++ b/src/gsystem-shutil.c @@ -182,7 +182,7 @@ cp_internal (GFile *src, { if (link (gs_file_get_path_cached (src_child), gs_file_get_path_cached (dest_child)) == -1) { - if (!(errno == EMLINK || errno == EXDEV)) + if (!(errno == EMLINK || errno == EXDEV || errno == EPERM)) { gs_set_error_from_errno (error, errno); goto out; |