History log of /freebsd-10-stable/bin/setfacl/file.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 301919 15-Jun-2016 truckman

MFC r301582

Explicitly NUL terminate the buffer filled by fread().

The fix in r300649 was not sufficient to convince Coverity that the
buffer was NUL terminated, even with the buffer pre-zeroed. Swap
the size and nmemb arguments to fread() so that a valid lenght is
returned, which we can use to terminate the string in the buffer
at the correct location. This should also quiet the complaint about
the return value of fread() not being checked.

Reported by: Coverity
CID: 1019054, 1009614
Secur3ty:
Sponsore dby:


# 301149 01-Jun-2016 truckman

MFC r300649

Fix Coverity CID 1019054 (String not null terminated) in setfacl.

Increase the size of buf[] by one to allow room for a NUL character
at the end.

Reported by: Coverity
CID: 1019054


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 204819 07-Mar-2010 joel

Switch to our preferred license text.

Approved by: jedgar


# 139969 10-Jan-2005 imp

/*- or .\"- or #- to begin license clauses.


# 99110 30-Jun-2002 obrien

Consistently use FBSDID


# 87254 02-Dec-2001 jedgar

style(9) cleanups mostly consisting of:
o explicitly check return values and variables against a value
o return x; -> return (x);
o fix inconsistent sysexits usage by nuking it (partially
suggested by bde)

Obtained from: TrustedBSD Project


# 76881 20-May-2001 kris

Silence WARNS=2 and BDECFLAGS on alpha and i386

MFC After: 1 week


# 74465 19-Mar-2001 rwatson

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