+2010-03-15 Nicolas François <nicolas.francois@centraliens.net>
+
+ * src/userdel.c: Avoid perror. Give more verbose warnings.
+
2010-03-11 Nicolas François <nicolas.francois@centraliens.net>
* man/Makefile.am: Indicate that man/generate_mans.deps is
}
snprintf (buf, buflen, TCB_DIR "/%s", user_name);
if (shadowtcb_drop_priv () == 0) {
- perror ("shadowtcb_drop_priv");
+ fprintf (stderr, "Cannot drop privileges: %s\n",
+ strerror (errno));
+ shadowtcb_gain_priv ();
free (buf);
return 1;
}
* We will regain them and remove the user's tcb directory afterwards.
*/
if (remove_tree (buf, false) != 0) {
- perror ("remove_tree");
+ fprintf (stderr, "Cannot remove the content of %s: %s\n",
+ buf, strerror (errno));
shadowtcb_gain_priv ();
free (buf);
return 1;