3afef2ec6e
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 |
||
---|---|---|
.. | ||
defs.h | ||
group.8 | ||
groupadd.8 | ||
groupdel.8 | ||
groupinfo.8 | ||
groupmod.8 | ||
main.c | ||
Makefile | ||
pathnames.h | ||
user.8 | ||
user.c | ||
useradd.8 | ||
userdel.8 | ||
userinfo.8 | ||
usermgmt.conf.5 | ||
usermgmt.h | ||
usermod.8 |