r3133: - more consistent error checking in rename and setfileinfo