]> Savannah Git Hosting - gnulib.git/commitdiff
qacl: split into qcopy-acl and qset-acl
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 27 May 2015 23:05:44 +0000 (16:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 28 May 2015 00:49:02 +0000 (17:49 -0700)
Emacs needs the former, but not the latter.
* modules/acl-permissions: New file, containing most of the old qacl.
* modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
* modules/qacl: Now merely depends on qcopy-acl and qset-acl.
* modules/qcopy-acl, modules/qset-acl: New files.
* MODULES.html.sh (File system functions):
Mention the new modules, and mention qacl while we're at it.

ChangeLog
MODULES.html.sh
modules/acl-permissions [new file with mode: 0644]
modules/file-has-acl
modules/qacl
modules/qcopy-acl [new file with mode: 0644]
modules/qset-acl [new file with mode: 0644]

index 6e43e666e785a3449c89781d77c6fee6b0839ad8..517d439c6809d7ddbdf603a031c3ce02e17f2a1e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       qacl: split into qcopy-acl and qset-acl
+       Emacs needs the former, but not the latter.
+       * modules/acl-permissions: New file, containing most of the old qacl.
+       * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
+       * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
+       * modules/qcopy-acl, modules/qset-acl: New files.
+       * MODULES.html.sh (File system functions):
+       Mention the new modules, and mention qacl while we're at it.
+
 2015-05-27  Glenn Morris  <rgm@gnu.org>
 
        gitlog-to-changelog: new option --ignore-line
index 0019b224a8bc0d1122e2c56031ca42f092fcaacf..7835e9db7424e77a587ab7873048df06e88a99a2 100755 (executable)
@@ -2614,6 +2614,7 @@ func_all_modules ()
 
   func_begin_table
   func_module acl
+  func_module acl-permissions
   func_module areadlink
   func_module areadlink-with-size
   func_module areadlinkat
@@ -2654,6 +2655,9 @@ func_all_modules ()
   func_module openat
   func_module openat-die
   func_module pathmax
+  func_module qacl
+  func_module qcopy-acl
+  func_module qset-acl
   func_module read-file
   func_module readlinkat
   func_module same
diff --git a/modules/acl-permissions b/modules/acl-permissions
new file mode 100644 (file)
index 0000000..49b91ff
--- /dev/null
@@ -0,0 +1,37 @@
+Description:
+Access control lists of files.  (Unportable.)
+
+Files:
+lib/acl.h
+lib/acl-internal.h
+lib/acl-errno-valid.c
+lib/acl_entries.c
+lib/acl-internal.c
+lib/get-permissions.c
+lib/set-permissions.c
+m4/acl.m4
+
+Depends-on:
+extern-inline
+fstat
+stdbool
+sys_stat
+
+configure.ac:
+gl_FUNC_ACL
+
+Makefile.am:
+lib_SOURCES += acl-errno-valid.c acl-internal.c \
+  get-permissions.c set-permissions.c
+
+Include:
+"acl.h"
+
+Link:
+$(LIB_ACL)
+
+License:
+GPL
+
+Maintainer:
+Paul Eggert, Jim Meyering
index b602dc582c596be39e29d7c8a97773143b594913..7b9b4f5f535c7d9d7fce86e88440293398e9de5f 100644 (file)
@@ -5,7 +5,7 @@ Files:
 lib/file-has-acl.c
 
 Depends-on:
-qacl  [test $gl_need_lib_has_acl]
+acl-permissions  [test $gl_need_lib_has_acl]
 
 configure.ac:
 gl_FILE_HAS_ACL
index a0fb2ad789f7019157303a8425a4c377c08c9d49..20c49acec5fc7af059294ec76faee500247da924 100644 (file)
@@ -1,36 +1,21 @@
 Description:
 Access control lists of files.  (Unportable.)
+This is a placeholder module for backwards compatibility.
+New programs should use either qcopy-acl or qset-acl or both.
 
 Files:
-lib/acl.h
-lib/acl-internal.h
-lib/acl-errno-valid.c
-lib/acl_entries.c
-lib/acl-internal.c
-lib/get-permissions.c
-lib/qcopy-acl.c
-lib/qset-acl.c
-lib/set-permissions.c
-m4/acl.m4
 
 Depends-on:
-extern-inline
-fstat
-stdbool
-sys_stat
+qcopy-acl
+qset-acl
 
 configure.ac:
-gl_FUNC_ACL
 
 Makefile.am:
-lib_SOURCES += acl-errno-valid.c acl-internal.c qcopy-acl.c qset-acl.c \
-       get-permissions.c set-permissions.c
 
 Include:
-"acl.h"
 
 Link:
-$(LIB_ACL)
 
 License:
 GPL
diff --git a/modules/qcopy-acl b/modules/qcopy-acl
new file mode 100644 (file)
index 0000000..c0e5b6a
--- /dev/null
@@ -0,0 +1,25 @@
+Description:
+Copy access control list from one file to another.  (Unportable.)
+
+Files:
+lib/qcopy-acl.c
+
+Depends-on:
+acl-permissions
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += qcopy-acl.c
+
+Include:
+"acl.h"
+
+Link:
+$(LIB_ACL)
+
+License:
+GPL
+
+Maintainer:
+Paul Eggert, Jim Meyering
diff --git a/modules/qset-acl b/modules/qset-acl
new file mode 100644 (file)
index 0000000..27fbc44
--- /dev/null
@@ -0,0 +1,25 @@
+Description:
+Set access control list of a file by specifying a mode.  (Unportable.)
+
+Files:
+lib/qset-acl.c
+
+Depends-on:
+acl-permissions
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += qset-acl.c
+
+Include:
+"acl.h"
+
+Link:
+$(LIB_ACL)
+
+License:
+GPL
+
+Maintainer:
+Paul Eggert, Jim Meyering