Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

passwd - incompatible data type (CrCh103)

SEC Impacts

Problem description

The passwd structure on Tru64 UNIX has one extra member: pw_quota. The pw_quota member provides Tru64 UNIX user quota information. It is not a part of the passwd structure on HP-UX.

On Tru64 UNIX, the passwd structure is as follows:

struct passwd {
        char    *pw_name;
        char    *pw_passwd;
        uid_t   pw_uid;
        gid_t   pw_gid;
        int     pw_quota;
        char    *pw_comment;
        char    *pw_gecos;
        char    *pw_dir;
        char    *pw_shell;
};

The following Application Programming Interfaces (APIs) use this structure: getpwuid, getpwnam, getpwent, putpwent, fgetpwent, getpwnam_r, and getpwuid_r.

On HP-UX, the passwd structure is as follows:

struct passwd {
        char    *pw_name;
        char    *pw_passwd;
        uid_t   pw_uid;
        gid_t   pw_gid;
        char    *pw_age;
        char    *pw_comment;
        char    *pw_gecos;
        char    *pw_dir;
        char    *pw_shell;
        int32_t pw_audid;
        int     pw_audflg;
};

Identifiers

C/C++ Structure Memberspw_quota        

See also

Solution description

You cannot obtain the user quota by accessing the structure.

In order to get user quota information, use the correct API, for example quotactl(2).

See also


Problem summary

classifications source types OS release severity type
SEC C, C++ any HP-UX 11i version critical changed
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.