~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/acl_entries.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Return the number of entries in an ACL.
2
2
 
3
 
   Copyright (C) 2002-2003, 2005-2011 Free Software Foundation, Inc.
 
3
   Copyright (C) 2002-2003, 2005-2012 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
22
22
#include "acl-internal.h"
23
23
 
24
24
/* This file assumes POSIX-draft like ACLs
25
 
   (Linux, FreeBSD, MacOS X, IRIX, Tru64).  */
 
25
   (Linux, FreeBSD, Mac OS X, IRIX, Tru64).  */
26
26
 
27
27
/* Return the number of entries in ACL.
28
28
   Return -1 and set errno upon failure to determine it.  */
34
34
 
35
35
  if (acl != NULL)
36
36
    {
37
 
#if HAVE_ACL_FIRST_ENTRY /* Linux, FreeBSD, MacOS X */
38
 
# if HAVE_ACL_TYPE_EXTENDED /* MacOS X */
 
37
#if HAVE_ACL_FIRST_ENTRY /* Linux, FreeBSD, Mac OS X */
 
38
# if HAVE_ACL_TYPE_EXTENDED /* Mac OS X */
39
39
      /* acl_get_entry returns 0 when it successfully fetches an entry,
40
40
         and -1/EINVAL at the end.  */
41
41
      acl_entry_t ace;