OpenSolaris

Printable Version Enter a New Search
Bug ID 5021976
Synopsis man cannot handle getcwd() failures
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:man
Keywords oss-bite-size
Sponsor
Submitter
Responsible Engineer Daniel Kuebrich
Reported Against s10_27 , s10_54
Duplicate Of
Introduced In
Commit to Fix snv_68
Fixed In snv_68
Release Fixed solaris_nevada(snv_68)
Related Bugs 4824627
Submit Date 29-March-2004
Last Update Date 3-July-2007
Description
see comments
[dp: bite size bug with no description: fixing...]

In man.c:

   1259         if ((cwd = getcwd(NULL, MAXPATHLEN+1)) == (char *)NULL) {
   1260                 perror("getcwd");
   1261                 exit(1);
   1262         }

A failing getcwd() is not an error; man(1) should be robust to the disappearance
of the current directory.
Work Around
N/A
Comments
N/A