userdel returns exit code 12 if user is not in /var/mail

Bug #1023509 reported by Jeremy Smitherman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
shadow (Debian)
Fix Released
Unknown
shadow (Ubuntu)
New
Undecided
Unassigned

Bug Description

This doesn't occur on CentOS and other distros. If mailspool is not installed, or for whatever other reason the user has no folder under /var/mail, usermod -r works properly, but returns exit code 12 (Which is supposed to be for failing to remove the user's home directory).

I would expect this to return exit code 0, as it's a warning.

Ubuntu 12.04 LTS

Expected: userdel -r returns 0, or at least not 12; which is for reporting that the home directory was unable to be removed.

Actual: userdel -r returns 12; this happens if mailspool is not installed, or user for whatever reason has no folder in /var/mail

Logan Rosen (logan)
affects: debian → shadow (Debian)
affects: ubuntu → shadow (Ubuntu)
Changed in shadow (Debian):
importance: Undecided → Unknown
status: New → Unknown
Revision history for this message
Logan Rosen (logan) wrote :

It looks like this bug was fixed in the new upstream version that's currently in Debian. I'm going to see if I can manage a merge (or possibly request a sync, if a merge is unnecessary); otherwise, I'll file a bug to request a merge from Debian.

Changed in shadow (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.