History log of /freebsd-current/bin/getfacl/getfacl.c
Revision Date Author Comments
# e043f372 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

bin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 781624ca 21-Jun-2023 Kyle Evans <kevans@FreeBSD.org>

getfacl: free `acl` in print_acl error path

Sponsored by: Klara, Inc.


# fcef0684 20-Jan-2021 Gleb Popov <arrowd@FreeBSD.org>

Fix build of bin/getfacl after libc changes.

Reviewed by: kib, debdrup, gbe
Approved by: kib
Differential Revision: https://reviews.freebsd.org/D28255


# caeb270e 23-Nov-2020 Gleb Popov <arrowd@FreeBSD.org>

bin/setfacl: Little refactoring, no functional change.

The acl_from_stat function accepts a stat_t * argument, but only uses its
st_mode field. There is no reason to pass the whole struct, so make it accept
a mode_t and rename the function to acl_from_mode.
Linux has non-standard acl_from_mode function in its libacl, so naming the
function this way may help discovering it during porting efforts.

Reviewed by: tsoome, markj
Approved by: markj
Differential Revision: https://reviews.freebsd.org/D27292


# 49618eac 01-Nov-2018 Mark Johnston <markj@FreeBSD.org>

Avoid copying a struct stat for acl_from_stat() calls.

CID: 1375584
MFC after: 2 weeks


# ae824d80 18-Oct-2012 Ed Schouten <ed@FreeBSD.org>

Fix warnings found by -Wmising-variable-declarations.

This self-written compiler warning, which is hopefully going to be
committed into LLVM sources soon, warns about potentially missing
`static' keywords, similar to -Wmissing-prototypes.

- bin/pax: Move external declaration of chdname and s_mask into extern.h.
- bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h.
- sbin/mount_fusefs: Remove char *progname; use getprogname().
- others: add `static' where possible.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 113c95e7 30-Jan-2010 Edward Tomasz Napierala <trasz@FreeBSD.org>

MFC r196827:

Add NFSv4 ACL support to getfacl(1).


# 83bd4cd0 04-Sep-2009 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add NFSv4 ACL support to getfacl(1).

Reviewed by: rwatson


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# c5771451 18-Sep-2007 Kevin Lo <kevlo@FreeBSD.org>

Use owner name and owning group name instead of uid and gid
for displaying the three-line comment header by default.

Reviewed by: kientzle
Approved by: re (bmah)


# f9a86e37 13-Mar-2006 Robert Watson <rwatson@FreeBSD.org>

Add "-q" argument to getfacl(1), which suppresses the per-file header
comment listing the file name, owner, and group.

MFC after: 1 week
Submitted by: Jan Srzednicki <w at expro dot pl>


# a89237ae 09-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Sync program's usage() with manpage's SYNOPSIS.


# 8051fdde 30-Dec-2002 Robert Watson <rwatson@FreeBSD.org>

Add "-h" arguments to getfacl and setfacl, which behave in a manner
similar to "-h" on chown, chmod, etc, causing the operation to occur
on a final symlink in the provided path, rather than its target.

Obtained from: TrustedBSD Project


# 4e65ab95 03-Nov-2002 Tim J. Robbins <tjr@FreeBSD.org>

- Consistent use of warn() vs. perror().
- Gracefully handle the case where standard input is missing
a newline at EOF.
- Exit with status 1 instead of -1 (really 255) on error.
- Add a Diagnostics section to the manual page documenting
exit status.

Approved by: rwatson


# 5eb43ac2 29-Jun-2002 David E. O'Brien <obrien@FreeBSD.org>

Consistently use __FBSDID


# fab912df 22-Feb-2002 Mark Murray <markm@FreeBSD.org>

Partially fix (well, work around) warnings inspired by lint, a
commercial lint and WARNS=4.


# 9331ef53 16-Nov-2001 Robert Watson <rwatson@FreeBSD.org>

o Update licenses, comments.

Obtained from: TrustedBSD Project


# 28bf3202 19-May-2001 Kris Kennaway <kris@FreeBSD.org>

Silence warnings on alpha. Unfortunately we can't add WARNS to this
because of that stupid mode_t warning bug.

MFC After: 1 week


# 7a832d43 13-Apr-2001 Chris D. Faulhaber <jedgar@FreeBSD.org>

Convert getfacl to the ACL editing library functions. getfacl should
now compile/work on any POSIX.1e-compliant implementation (also tested
against the current Linux patches).

Review by: rwatson
Obtained from: TrustedBSD Project


# fb1af1f2 10-Apr-2001 Chris D. Faulhaber <jedgar@FreeBSD.org>

Correct the following defines to match the POSIX.1e spec:

ACL_PERM_EXEC -> ACL_EXECUTE
ACL_PERM_READ -> ACL_READ
ACL_PERM_WRITE -> ACL_WRITE

Obtained from: TrustedBSD


# 43960f15 19-Mar-2001 Robert Watson <rwatson@FreeBSD.org>

o POSIX.2c Userland tool support for POSIX.1e ACLs -- getfacl retrieves ACLs
from files and directories, and setfacl sets ACLs on files and directories.

Submitted by: jedgar
Obtained from: TrustedBSD Project