summaryrefslogtreecommitdiff
path: root/src/basic/macro.h
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-03-29 10:05:39 +0200
committerSven Eden <yamakuzure@gmx.net>2017-03-29 10:46:30 +0200
commit3cd22db822df747636dcf30ebb8ec5d16bb71880 (patch)
tree5805f577516c2304c59daad957f2688d8d65cfb0 /src/basic/macro.h
parentf556f28e9299d8e94acc652d58f4515fb89f6229 (diff)
[1/5] Apply missing fixes from upstream
Diffstat (limited to 'src/basic/macro.h')
-rw-r--r--src/basic/macro.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h
index e93d7f155..53d7f9baf 100644
--- a/src/basic/macro.h
+++ b/src/basic/macro.h
@@ -471,18 +471,6 @@ do { \
#define GID_INVALID ((gid_t) -1)
#define MODE_INVALID ((mode_t) -1)
-static inline bool UID_IS_INVALID(uid_t uid) {
- /* We consider both the old 16bit -1 user and the newer 32bit
- * -1 user invalid, since they are or used to be incompatible
- * with syscalls such as setresuid() or chown(). */
-
- return uid == (uid_t) ((uint32_t) -1) || uid == (uid_t) ((uint16_t) -1);
-}
-
-static inline bool GID_IS_INVALID(gid_t gid) {
- return gid == (gid_t) ((uint32_t) -1) || gid == (gid_t) ((uint16_t) -1);
-}
-
#define DEFINE_TRIVIAL_CLEANUP_FUNC(type, func) \
static inline void func##p(type *p) { \
if (*p) \