getcwd() could fail for any one of a variety of reasons such as:
View the error message for clues to the problem and take corrective action.
Parent topic: AIX client messages