OpenSolaris

Printable Version Enter a New Search
Bug ID 6765931
Synopsis mcs generates unlink(NULL) system calls
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:elf
Keywords
Responsible Engineer Ali Bahrami
Reported Against
Duplicate Of
Introduced In
Commit to Fix snv_105
Fixed In snv_105
Release Fixed solaris_nevada(snv_105)
Related Bugs
Submit Date 31-October-2008
Last Update Date 17-December-2008
Description
In dtraceing unlink() and unlinkat() calls, I kept getting errors on the pathname
arguments while running nightly; I traced this back to mcs/strip, which call
unlink on pathnames which may well be (and often are) NULL.

The obvious fix is to change "unlink(path)" to "if (path) unlink(path);".
Work Around
N/A
Comments
N/A