r7081 introduced a new helper function to seash_helper.py which is required when generating new user keys for which key files do already exist (among other things). These files are deleted before the new keys are saved. In its current form, the function won't detect the error that arises when the file it should delete doesn't exist in the first place.
My patch is trivial, I'm replacing the check for a magic string ("cannot find the file") that neither Linux nor Mac OS X produced in my tests with a check for the OSError's errno instead. Please review and commit!
r7081 introduced a new helper function to seash_helper.py which is required when generating new user keys for which key files do already exist (among other things). These files are deleted before the new keys are saved. In its current form, the function won't detect the error that arises when the file it should delete doesn't exist in the first place.
My patch is trivial, I'm replacing the check for a magic string ("cannot find the file") that neither Linux nor Mac OS X produced in my tests with a check for the
OSError
'serrno
instead. Please review and commit!