GNU bug report logs - #6053
cp, ls, and mv bug: unknown error (252)

Previous Next

Package: coreutils;

Reported by: "Callahan, Patrick M." <pat.callahan <at> gd-ais.com>

Date: Tue, 27 Apr 2010 14:07:01 UTC

Severity: normal

Tags: fixed, moreinfo

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Jim Meyering <jim <at> meyering.net>
To: "Callahan\, Patrick M." <pat.callahan <at> gd-ais.com>
Cc: bug-gnulib <at> gnu.org, 6053 <at> debbugs.gnu.org, Bob Proulx <bob <at> proulx.com>
Subject: Re: bug#6053: cp, ls, and mv bug: unknown error (252)
Date: Tue, 08 Jun 2010 22:51:06 +0200
Callahan, Patrick M. wrote:
> Pádraig Brady wrote:
>> Callahan, Patrick M. wrote:
>> > When using coreutils binaries either built from sources or installed
>> > from the Porting And Archive Centre for HP-UX we see errors of the type
>> > below when copying (cp), listing (ls), or moving (mv) files or
>> > directories on Quantum's StorNext file system (cvfs).  When we build
>> > "--without-acl" we do not see these errors.
>> >
>> >> mv SEG_5_1* ~/release-input/dev-to-integration
>> > mv: preserving permissions for
>> > `/usr/people/archive/release-input/dev-to-integation/SEG_5_1.txt':
>> > Unknown error (252)

Thanks for the details.
Do you care about ACLs?
If not, then building --without-acl should be fine.

If you do require that ACLs be preserved in general,
then more work will be required.  The code in question is
probably part of gnulib, in copy-acl.c.  There, we already
ignore failure due to conditions that imply lack of support:

    if ((errno == ENOSYS || errno == EOPNOTSUPP)
    ...
    if ((errno == ENOSYS || errno == EINVAL || errno == ENOTSUP)

But that the errno value in question, 252, does not map
to a strerror string is ominous.  Could it be that your version
of HP-UX's C library is lacking patches that might provide that?

You could get in a debugger and determine where
to add "|| errno == 252" to solve what appears to be
an HP-UX-and/or-cvfs-specific problem.

However, such a change is not appropriate for others,
and I doubt it will be worthwhile to attempt an
upstream workaround.




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

Previous Next


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