/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-2011 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it and/or
- modify it under the terms of version two of the GNU General Public
+ modify it under the terms of version three of the GNU Affero General Public
License as published by the Free Software Foundation and included
in the file LICENSE.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
- You should have received a copy of the GNU General Public License
+ You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
#endif
#ifdef HAVE_AIX_OS
+# ifndef _AIX51
extern "C" int initgroups(const char *,int);
+# endif
#endif
/*
*/
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;
berrno be;
Emsg1(M_ERROR_TERM, 0, _("Could not set specified userid: %s\n"), username);
}
+#endif
}