OpenSolaris

Printable Version Enter a New Search
Bug ID 6671333
Synopsis dlmgmtd may return wrong errno when it cannot update datalink.conf
State 10-Fix Delivered (Fix available in build)
Category:Subcategory network:dladm
Keywords
Responsible Engineer Cathy Zhou
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_86
Fixed In snv_86
Release Fixed solaris_nevada(snv_86)
Related Bugs 6577618
Submit Date 5-March-2008
Last Update Date 28-March-2008
Description
looking at the dlmgmt_process_db_onereq() function, there are several places do things
like below:
                if ((nfp = fdopen(nfd, "w")) == NULL) {
                        (void) close(nfd);
                        (void) fclose(fp);
                        (void) unlink(newfile);
                        return (errno);
                }

Note that the value of errno could be overwritten by the several calls after fdopen().
Work Around
N/A
Comments
N/A