Skip to content

Commit

Permalink
Merge pull request #21 from ancorgs/ypdomainname
Browse files Browse the repository at this point in the history
Use the correct location for ypdomainname (bnc#916031)
  • Loading branch information
ancorgs committed Feb 4, 2015
2 parents 2140267 + 5ef5ff8 commit c7e7e03
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
6 changes: 6 additions & 0 deletions package/yast2-nis-client.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 4 11:01:53 UTC 2015 - ancor@suse.com

- Use correct location for ypdomainname (bnc#916031)
- 3.1.12

-------------------------------------------------------------------
Thu Dec 4 09:50:31 UTC 2014 - jreidinger@suse.com

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


Name: yast2-nis-client
Version: 3.1.11
Version: 3.1.12
Release: 0
Url: https://github.com/yast/yast-nis-client

Expand Down
6 changes: 2 additions & 4 deletions src/modules/Nis.rb
Expand Up @@ -908,10 +908,8 @@ def Read
@multidomain_broadcast = {} if @multidomain_broadcast == nil
@slp_domain = {} if @slp_domain == nil

out = Convert.to_map(
SCR.Execute(path(".target.bash_output"), "/bin/ypdomainname")
)
@domain = Builtins.deletechars(Ops.get_string(out, "stdout", ""), "\n")
out = SCR.Execute(path(".target.bash_output"), "/usr/bin/ypdomainname")
@domain = out["stdout"].chomp
@old_domain = @domain

@dhcpcd_running = SCR.Execute(
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/readwrite.out
@@ -1,7 +1,7 @@
Dump no policy
Read .sysconfig.network.config.NETCONFIG_NIS_POLICY ""
Dir .sysconfig.network.config: ["NETCONFIG_NIS_POLICY"]
Execute .target.bash_output "/bin/ypdomainname" $["exit":0, "stderr":"", "stdout":"mydomain\n"]
Execute .target.bash_output "/usr/bin/ypdomainname" $["exit":0, "stderr":"", "stdout":"mydomain\n"]
Execute .target.bash "ls /var/run/dhcpcd-*.pid" 0
Read .sysconfig.ypbind.YPBIND_LOCAL_ONLY "no"
Read .sysconfig.ypbind.YPBIND_BROADCAST "no"
Expand All @@ -27,7 +27,7 @@ Return true
Dump auto policy
Read .sysconfig.network.config.NETCONFIG_NIS_POLICY "auto"
Dir .sysconfig.network.config: ["NETCONFIG_NIS_POLICY"]
Execute .target.bash_output "/bin/ypdomainname" $["exit":0, "stderr":"", "stdout":"mydomain\n"]
Execute .target.bash_output "/usr/bin/ypdomainname" $["exit":0, "stderr":"", "stdout":"mydomain\n"]
Execute .target.bash "ls /var/run/dhcpcd-*.pid" 0
Read .sysconfig.ypbind.YPBIND_LOCAL_ONLY "no"
Read .sysconfig.ypbind.YPBIND_BROADCAST "no"
Expand Down

0 comments on commit c7e7e03

Please sign in to comment.