Commit 0d9d2712 authored by Pavel Tikhomirov's avatar Pavel Tikhomirov Committed by Andrei Vagin

files: change error to warning in linkat_hard error path

We print errors in all error cases when calling linkat_hard anyway, but
for some errors like EEXIST we are fine and just skip them, so we should
not print error here.
Signed-off-by: 's avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 9ffe2f33
...@@ -1366,7 +1366,7 @@ static int linkat_hard(int odir, char *opath, int ndir, char *npath, uid_t uid, ...@@ -1366,7 +1366,7 @@ static int linkat_hard(int odir, char *opath, int ndir, char *npath, uid_t uid,
if (!( (errno == EPERM || errno == EOVERFLOW) && (root_ns_mask & CLONE_NEWUSER) )) { if (!( (errno == EPERM || errno == EOVERFLOW) && (root_ns_mask & CLONE_NEWUSER) )) {
errno_save = errno; errno_save = errno;
pr_perror("Can't link %s -> %s", opath, npath); pr_warn("Can't link %s -> %s", opath, npath);
errno = errno_save; errno = errno_save;
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment