Similar to the previous issue, if there is no /etc/profile.d there would be errors. Now if there is a directory, but no files in it, we get errors. The attached patch should resolve the issue.
Created attachment 75434 [details, diff] oops-I-did-it-again.patch
*** This bug has been marked as a duplicate of 116232 ***