GNU bug report logs - #20979
../lib/set-permissions.c:288:27: error: 'mode' undeclared

Previous Next

Package: coreutils;

Reported by: John David Anglin <dave.anglin <at> bell.net>

Date: Sat, 4 Jul 2015 15:57:02 UTC

Severity: normal

Tags: fixed

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

Bug is archived. No further changes may be made.

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: John David Anglin <dave.anglin <at> bell.net>
Cc: Gnulib bugs <bug-gnulib <at> gnu.org>,
 Andreas Gruenbacher <andreas.gruenbacher <at> gmail.com>, 20979 <at> debbugs.gnu.org
Subject: Re: bug#20979: ../lib/set-permissions.c:288:27: error: 'mode'
 undeclared
Date: Sat, 04 Jul 2015 11:10:27 -0700
[Message part 1 (text/plain, inline)]
John David Anglin wrote:
> The following error occurs building coreutils-8.24 on hppa2.0w-hp-hpux11.11 with gcc-5:
>
>    CC       lib/set-permissions.o../lib/set-permissions.c: In function 'context_acl_from_mode':
> ../lib/set-permissions.c:288:27: error: 'mode' undeclared (first use in this function)
>     ctx->entries[0].mode = (mode >> 6) & 7;
...

Thanks for reporting that.  There are some obvious typos in the recent 
ACL-related patches when compiled on HP-UX.  I installed the attached patch into 
gnulib; can you please give it a try on coreutils 8.24?  I don't have access to 
an HP-UX box to test it myself.

I'll CC: this to Andreas Gruenbacher, the author of the recent patches, to give 
him a heads-up.

[0001-file-has-acl-acl-permissions-fix-HP-UX-typos.patch (text/x-diff, attachment)]

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

Previous Next


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