]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bin/setfacl: Little refactoring, no functional change.
authorGleb Popov <arrowd@FreeBSD.org>
Mon, 23 Nov 2020 17:00:06 +0000 (17:00 +0000)
committerGleb Popov <arrowd@FreeBSD.org>
Mon, 23 Nov 2020 17:00:06 +0000 (17:00 +0000)
commitcaeb270e9fa89b24d61775541b15c61a23c0e829
treebb2313d56c2c8672156c645e1dc4336abebe6cb9
parent64cecc7a75ab99405686a16bad41d25bc1bbedff
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
bin/getfacl/getfacl.c