*/
void drop(char *uname, char *gname, bool keep_readall_caps)
{
+#if defined(HAVE_PWD_H) && defined(HAVE_GRP_H)
struct passwd *passw = NULL;
struct group *group = NULL;
gid_t gid;
}
cap_free(caps);
#else
- Emsg0(M_ERROR_TERM, 0, _("Keep readall capabilities is not implemented on this platform yet\n"));
+ Emsg0(M_ERROR_TERM, 0, _("Keep readall caps not implemented this OS or missing libraries.\n"));
#endif
} else if (setuid(uid)) {
berrno be;
Emsg1(M_ERROR_TERM, 0, _("Could not set specified userid: %s\n"), username);
}
+#endif
}