From 43c6ef560e45144598b9b4a76cedcadbde4332c5 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Wed, 30 Jan 2019 16:43:04 -0800 Subject: [PATCH] Return not supported when hard linking This is more correct than permission denied. --- src/s3fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s3fs.cpp b/src/s3fs.cpp index 5159336..25a5d84 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -1550,7 +1550,7 @@ static int s3fs_rename(const char* from, const char* to) static int s3fs_link(const char* from, const char* to) { S3FS_PRN_INFO("[from=%s][to=%s]", from, to); - return -EPERM; + return -ENOTSUP; } static int s3fs_chmod(const char* path, mode_t mode)