
If the 'rm -rf' works, then the home directory does not exist any more, and rmdir() on it will return an error (ENOENT). Catch and ignore it. Avoids: # useradd -m foo # userdel -r foo userdel: Unable to remove all files in `/home/foo': No such file or directory