Make `-g' working for symlinks.
PR: 33857 Submitted by: darren <igla@batterybackups.net> MFC after: 1 week