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:

cuserid - maximum length of username is different (CrCh189)

UN Impacts

Problem description

The cuserid function generates a character string representing the real or effective username of the owner of the current process.

Tru64 UNIX supports usernames up to 12 bytes in length (including the terminating null character) by default, but it can be extended to support usernames of up to 64 bytes. Currently, HP-UX supports usernames up to 9 bytes; however, expanded usernames will be available as a configuration option in a future release of HP-UX.

Identifiers

C/C++ Functionscuserid        

See also

Solution description

Change any usernames with a length of more than 9 bytes (including terminating NULL character) to less than or equal to 9 bytes (including terminating NULL character).

Because cuserid is scheduled to be withdrawn from a future version of the X/Open CAE specifications and is subject to withdrawal from future releases of HP-UX, we recommend that references to cuserid be replaced by equivalent calls to getpwuid or getlogin, depending on which username you want.

See also


Problem summary

classifications source types OS release severity type
UN 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.