Commit 142a5e7b authored by Wayne Davison's avatar Wayne Davison

Moved GID_NONE define from rsync.h to uidlist.c.

parent fdfc6740
...@@ -565,8 +565,6 @@ struct idev_node { ...@@ -565,8 +565,6 @@ struct idev_node {
#define ACLS_NEED_MASK 1 #define ACLS_NEED_MASK 1
#endif #endif
#define GID_NONE ((gid_t)-1)
union file_extras { union file_extras {
int32 num; int32 num;
uint32 unum; uint32 unum;
......
...@@ -26,12 +26,6 @@ ...@@ -26,12 +26,6 @@
#include "rsync.h" #include "rsync.h"
#include "io.h" #include "io.h"
#ifdef HAVE_GETGROUPS
# ifndef GETGROUPS_T
# define GETGROUPS_T gid_t
# endif
#endif
extern int verbose; extern int verbose;
extern int am_root; extern int am_root;
extern int preserve_uid; extern int preserve_uid;
...@@ -39,6 +33,14 @@ extern int preserve_gid; ...@@ -39,6 +33,14 @@ extern int preserve_gid;
extern int preserve_acls; extern int preserve_acls;
extern int numeric_ids; extern int numeric_ids;
#ifdef HAVE_GETGROUPS
# ifndef GETGROUPS_T
# define GETGROUPS_T gid_t
# endif
#endif
#define GID_NONE ((gid_t)-1)
struct idlist { struct idlist {
struct idlist *next; struct idlist *next;
char *name; char *name;
...@@ -217,9 +219,6 @@ gid_t match_gid(gid_t gid, uint16 *flags_ptr) ...@@ -217,9 +219,6 @@ gid_t match_gid(gid_t gid, uint16 *flags_ptr)
static gid_t last_in = GID_NONE, last_out = GID_NONE; static gid_t last_in = GID_NONE, last_out = GID_NONE;
struct idlist *list; struct idlist *list;
if (gid == GID_NONE)
return GID_NONE;
if (gid == last_in) if (gid == last_in)
return last_out; return last_out;
......
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