new attempt at making set*id() safe and robust
[musl] / lib /
2011-02-17 Rich Felkernew solution for empty lib dir (old one had some problems)