summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2003-02-26 06:27:13 +0000
committerNathan Scott <nathans@sgi.com>2003-02-26 06:27:13 +0000
commit79989b25c65ea0b8352fcd0bfc15461af09251b3 (patch)
treed993baa3d0be95f4978ffe1ab2d765d993b743c5 /include
parent7b33ebd60e68795347c2c844d81d90e38fd9091e (diff)
downloadattr-79989b25c65ea0b8352fcd0bfc15461af09251b3.tar.gz
Another extended attributes userspace patch from AndreasG - several small
incremental fixes from last set, and addition of symbol versioning.
Diffstat (limited to 'include')
-rw-r--r--include/error_context.h2
-rw-r--r--include/libattr.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/include/error_context.h b/include/error_context.h
index c838ebc..f3c54e9 100644
--- a/include/error_context.h
+++ b/include/error_context.h
@@ -24,7 +24,7 @@ struct error_context {
# define quote(ctx, name) \
( ((ctx) && (ctx)->quote) ? (ctx)->quote((ctx), (name)) : (name) )
# define quote_free(ctx, name) do { \
- if ((ctx) && (ctx)->quote) \
+ if ((ctx) && (ctx)->quote_free) \
(ctx)->quote_free((ctx), (name)); \
} while(0)
#endif
diff --git a/include/libattr.h b/include/libattr.h
index bb8ce6f..2fe477c 100644
--- a/include/libattr.h
+++ b/include/libattr.h
@@ -8,12 +8,15 @@ extern "C" {
struct error_context;
extern int attr_copy_file (const char *, const char *,
- int (*) (const char *name, struct error_context *),
+ int (*) (const char *, struct error_context *),
struct error_context *);
extern int attr_copy_fd (const char *, int, const char *, int,
int (*) (const char *, struct error_context *),
struct error_context *);
+/* The default check function used by attr_copy_{fd,file}. */
+extern int attr_copy_check_permissions(const char *, struct error_context *);
+
#ifdef __cplusplus
}
#endif