Commit a09a0344 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Pádraig Brady

acl, qacl: split off shared functions into separate object file

Some of the helper functions in file-has-acl.c are used from qcopy-acl.c while
file_has_acl() isn't needed there.  Split the shared functions off into
acl-internal.c.

* lib/file-has-acl.c: Remove helper functions here.
* lib/acl-internal.c: Add helper functions here.
* modules/qacl: Use acl-internal.c instead of file-has-acl.c here.
* modules/acl: Add file-has-acl.c now that qacl doesn't use it anymore.
parent 6c4ac1b6
This diff is collapsed.
This diff is collapsed.
......@@ -2,6 +2,7 @@ Description:
Access control lists of files, with diagnostics. (Unportable.)
Files:
lib/file-has-acl.c
lib/copy-acl.c
lib/set-acl.c
......@@ -14,7 +15,7 @@ quote
configure.ac:
Makefile.am:
lib_SOURCES += copy-acl.c set-acl.c
lib_SOURCES += file-has-acl.c copy-acl.c set-acl.c
Include:
"acl.h"
......
......@@ -6,7 +6,7 @@ lib/acl.h
lib/acl-internal.h
lib/acl-errno-valid.c
lib/acl_entries.c
lib/file-has-acl.c
lib/acl-internal.c
lib/qcopy-acl.c
lib/qset-acl.c
m4/acl.m4
......@@ -21,7 +21,7 @@ configure.ac:
gl_FUNC_ACL
Makefile.am:
lib_SOURCES += acl-errno-valid.c file-has-acl.c qcopy-acl.c qset-acl.c
lib_SOURCES += acl-errno-valid.c acl-internal.c qcopy-acl.c qset-acl.c
Include:
"acl.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment