GNU bug report logs - #30253
solaris: cp(1) check failures on tmpfs filesystem (Solaris 10 / Solaris 11)

Previous Next

Package: coreutils;

Reported by: Alexander Pyhalov <alp <at> rsu.ru>

Date: Thu, 25 Jan 2018 22:35:02 UTC

Severity: normal

Merged with 21062

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexander Pyhalov <alp <at> rsu.ru>
To: bug-coreutils <at> gnu.org
Subject: 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
[Message part 1 (text/plain, inline)]
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
[set-permission.c.patch (text/x-diff, attachment)]

This bug report was last modified 6 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.