summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndreas Gruenbacher <andreas.gruenbacher@gmail.com>2015-04-12 16:36:36 +0200
committerPádraig Brady <P@draigBrady.com>2015-04-15 18:30:20 +0100
commita09a0344e3282d8b4a927916cf117ba5c1472bdd (patch)
treeb43ebaaf1ea76b98aeb8de8befd41de05d0414b2 /modules
parent6c4ac1b6651dd4d19abf1f3f758cd569b96ee968 (diff)
downloadgnulib-a09a0344e3282d8b4a927916cf117ba5c1472bdd.tar.gz
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.
Diffstat (limited to 'modules')
-rw-r--r--modules/acl3
-rw-r--r--modules/qacl4
2 files changed, 4 insertions, 3 deletions
diff --git a/modules/acl b/modules/acl
index 5cb91e0378..fdb0d72025 100644
--- a/modules/acl
+++ b/modules/acl
@@ -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"
diff --git a/modules/qacl b/modules/qacl
index 78da6e112a..bc7382b4ef 100644
--- a/modules/qacl
+++ b/modules/qacl
@@ -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"