bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30253: Fix for bug 21062 coreutils-8.24 - cp(1) check failures on tm


From: Alexander Pyhalov
Subject: bug#30253: Fix for bug 21062 coreutils-8.24 - cp(1) check failures on tmpfs filesystem (Solaris 10 / Solaris 11)
Date: Fri, 26 Jan 2018 01:34:29 +0300

Hello.

I have a fix for 'bug 21062 coreutils-8.24 - cp(1) check failures on tmpfs filesystem (Solaris 10 / Solaris 11)'.

The issue is that when on tmpfs we use acl(), trying to set ACL, it sets errno to ENOSYS (ACLs not supported). set_acls still returns 0, but it spoils errno. When we do "cp -a", later this ENOSYS appears in set_acls() results.
(I still don't quite understand, why return code is not 0).
The easiest fix here is to resetting errno to 0 when we are not going to return non-zero result immediately

https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/sysutils/coreutils/patches/set-permission.c.patch

--
System Administrator of Southern Federal University Computer Center

Attachment: set-permission.c.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]