~ubuntu-branches/debian/squeeze/netatalk/squeeze

« back to all changes in this revision

Viewing changes to etc/uams/uams_pam.c

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-02-02 19:59:05 UTC
  • mfrom: (8.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090202195905-732t6wxk8jzsb91r
Tags: 2.0.4~beta2-4.1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes: LP: #318665
  - Changed dependency from libdb-dev to libdb4.6-dev to correct
    FTBFS due to an issue caused by mismatches on installed binaries
    and development headers (db4.7 is installed under a different soname
    which breaks a check in netatalk) (LP: #262991)
  - debian/control:
    + Replace libltdl3-dev with libltdl7-dev.
    + Recommend db4.6-util instead of db4.2-util as we build netatalk with
      db4.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: uams_pam.c,v 1.15.2.1.2.5 2004/02/14 02:47:15 didg Exp $
 
2
 * $Id: uams_pam.c,v 1.15.2.1.2.5.2.1 2005/09/27 10:40:41 didg Exp $
3
3
 *
4
4
 * Copyright (c) 1990,1993 Regents of The University of Michigan.
5
5
 * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) 
69
69
static int PAM_conv (int num_msg,
70
70
                     const struct pam_message **msg,
71
71
                     struct pam_response **resp,
72
 
                     void *appdata_ptr) 
 
72
                     void *appdata_ptr _U_) 
73
73
{
74
74
  struct pam_response *reply;
75
75
  int count;
139
139
};
140
140
 
141
141
static int login(void *obj, char *username, int ulen,  struct passwd **uam_pwd,
142
 
                     char *ibuf, int ibuflen,
143
 
                     char *rbuf, int *rbuflen)
 
142
                     char *ibuf, int ibuflen _U_,
 
143
                     char *rbuf _U_, int *rbuflen _U_)
144
144
{
145
145
    struct passwd *pwd;
146
146
    int err, PAM_error;
282
282
}
283
283
 
284
284
/* change passwd */
285
 
static int pam_changepw(void *obj, char *username,
286
 
                        struct passwd *pwd, char *ibuf, int ibuflen,
287
 
                        char *rbuf, int *rbuflen)
 
285
static int pam_changepw(void *obj _U_, char *username,
 
286
                        struct passwd *pwd _U_, char *ibuf, int ibuflen _U_,
 
287
                        char *rbuf _U_, int *rbuflen _U_)
288
288
{
289
289
    char pw[PASSWDLEN + 1];
290
290
    pam_handle_t *lpamh;