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


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>, Alexander Pyhalov <alp <at> rsu.ru>, 30253 <at> debbugs.gnu.org
Subject: bug#30253: Fix for bug 21062 coreutils-8.24 - cp(1) check failures on tmpfs filesystem (Solaris 10 / Solaris 11)
Date: Sat, 27 Jan 2018 17:51:17 -0800
Pádraig Brady wrote:
> On the face of it, setting errno=0 when returning 0 seems correct,

I would say just the opposite. Typically, functions that return 0 on success and 
-1 (setting errno) on failure, are allowed to set errno to whatever they like on 
success. So it should not fix any bugs to set errno to 0 here. My guess is that 
the bugs are in the callers, not here in the callees.




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.