Skip to content

Commit

Permalink
Merge pull request #88 from yast/checking_empty_string_sp1
Browse files Browse the repository at this point in the history
backport from master
  • Loading branch information
schubi2 committed Feb 18, 2016
2 parents f2283db + 77b9b03 commit 88c49c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions package/yast2-users.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 18 14:00:19 CET 2016 - schubi@suse.de

- Do not crash autoinstallation if the home directory of a user is
directly under /. (bnc#966867)
- 3.1.41.1

-------------------------------------------------------------------
Wed Nov 18 08:48:16 UTC 2015 - igonzalezsosa@suse.com

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


Name: yast2-users
Version: 3.1.41
Version: 3.1.41.1
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
2 changes: 1 addition & 1 deletion src/modules/UsersRoutines.pm
Expand Up @@ -98,7 +98,7 @@ sub CreateHome {

# create a path to new home directory, if not exists
my $home_path = substr ($home, 0, rindex ($home, "/"));
if (!%{SCR->Read (".target.stat", $home_path)}) {
if (length($home_path) and !%{SCR->Read (".target.stat", $home_path)}) {
SCR->Execute (".target.mkdir", $home_path);
}
my %stat = %{SCR->Read (".target.stat", $home)};
Expand Down

0 comments on commit 88c49c9

Please sign in to comment.