Project

General

Profile

Actions

Bug #14634

open

useradd forgets to destroy created FS if it fails to chmod it

Added by Yuri Pankov 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
cmd - userland programs
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Looks like we close the handle too early and forget to destroy the created FS if we fail to chmod it:

http://src.illumos.org/source/xref/illumos-gate/usr/src/cmd/oamuser/user/homedir.c?r=d0b12b66#132

We fail to create the user in that case, so we have to clean up.

No data to display

Actions

Also available in: Atom PDF