]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sethostname/setdomainname: notify userspace when there is a change in uts_kern_table
authorSasikantha babu <sasikanth.v19@gmail.com>
Thu, 3 May 2012 05:44:13 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:42 +0000 (15:46 +1000)
commit05b355173b363bb460800b814f9ccf0db21ab8c7
tree77c277eea605df986226c664cc73a81bcf314169
parent3232ba962ce31470feb5a1dd749b5c86b26d008b
sethostname/setdomainname: notify userspace when there is a change in uts_kern_table

sethostname() and setdomainname() notify userspace on failure (without
modifying uts_kern_table).  Change things so that we only notify userspace
on success, when uts_kern_table was actually modified.

Signed-off-by: Sasikantha babu <sasikanth.v19@gmail.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: WANG Cong <amwang@redhat.com>
Reviewed-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/sys.c