]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/priv.c
Fix typo.
[bacula/bacula] / bacula / src / lib / priv.c
index 0e9267eb0649fb3da4e507fb673b5ecbee16cd26..63640b35fba7445b225444f2234fe5cc08ac30b3 100644 (file)
@@ -6,7 +6,7 @@
    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.
 
@@ -15,7 +15,7 @@
    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.
@@ -39,7 +39,9 @@
 #endif
 
 #ifdef HAVE_AIX_OS
+# ifndef _AIX51
 extern "C" int initgroups(const char *,int);
+# endif
 #endif
 
 /*
@@ -48,6 +50,7 @@ extern "C" int initgroups(const char *,int);
  */
 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;
@@ -131,4 +134,5 @@ void drop(char *uname, char *gname, bool keep_readall_caps)
       berrno be;
       Emsg1(M_ERROR_TERM, 0, _("Could not set specified userid: %s\n"), username);
    }
+#endif
 }