Skip to content

Commit

Permalink
Setting default home directory of user "root" to "/root"
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Jun 2, 2014
1 parent 32d1c8e commit a9f7d28
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions package/yast2-users.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jun 2 13:40:11 CEST 2014 - schubi@suse.de

- Setting default home directory of user "root" to "/root"
(bnc#878427)
- 3.1.26

-------------------------------------------------------------------
Fri May 23 14:57:15 CEST 2014 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-users.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-users
Version: 3.1.25
Version: 3.1.26
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
5 changes: 5 additions & 0 deletions src/modules/Users.pm
Expand Up @@ -5866,6 +5866,11 @@ sub ImportUser {
}
my $home = $self->GetDefaultHome($type).$username;

if ($uid == 0) {
#user "root" has default home directory "/root"
$home = "/root";
}

my %grouplist = ();
if (defined $user->{"grouplist"}) {
if (ref ($user->{"grouplist"}) eq "HASH") {
Expand Down

0 comments on commit a9f7d28

Please sign in to comment.