summaryrefslogtreecommitdiff
path: root/src/chown-core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/chown-core.h')
-rw-r--r--src/chown-core.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/chown-core.h b/src/chown-core.h
index 0e2a17e9b..0761b383b 100644
--- a/src/chown-core.h
+++ b/src/chown-core.h
@@ -38,28 +38,19 @@ enum Verbosity
V_off
};
-enum Dereference_symlink
-{
- DEREF_UNDEFINED = 1,
- DEREF_NEVER, /* -P */
- DEREF_COMMAND_LINE_ARGUMENTS, /* -H */
- DEREF_ALWAYS /* -L */
-};
-
struct Chown_option
{
/* Level of verbosity. */
enum Verbosity verbosity;
/* If nonzero, change the ownership of directories recursively. */
- int recurse;
+ bool recurse;
- /* This is useful only on systems with support for changing the
- ownership of symbolic links. */
- enum Dereference_symlink dereference;
+ /* This corresponds to the --dereference (opposite of -h) option. */
+ bool affect_symlink_referent;
/* If nonzero, force silence (no error messages). */
- int force_silent;
+ bool force_silent;
/* The name of the user to which ownership of the files is being given. */
char *user_name;
@@ -81,9 +72,9 @@ char *
uid_to_name (uid_t);
int
-change_file_owner (int, const char *,
- uid_t, gid_t,
- uid_t, gid_t,
- struct Chown_option const *);
+chown_files (char **files, int bit_flags,
+ uid_t uid, gid_t gid,
+ uid_t required_uid, gid_t required_gid,
+ struct Chown_option const *chopt);
#endif /* CHOWN_CORE_H */