/* * decode_uid - decodes and returns the given string, which can be either the * numeric or name representation, into the integer uid or gid. Returns * UINT_MAX on error. */ unsigned int decode_uid(const char *s) { unsigned int v = do_decode_uid(s); if (v == UINT_MAX) { LOG(ERROR) << "decode_uid: Unable to find UID for '" << s << "'; returning UINT_MAX"; } return v; }
/* * decode_uid - decodes and returns the given string, which can be either the * numeric or name representation, into the integer uid or gid. Returns * UINT_MAX on error. */ unsigned int decode_uid(const char *s) { unsigned int v = do_decode_uid(s); if (v == UINT_MAX) { ERROR("decode_uid: Unable to find UID for '%s'. Returning UINT_MAX\n", s); } return v; }