]> 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>
Wed, 25 Apr 2012 01:03:55 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:29 +0000 (15:17 +1000)
commit036061b6ca387ea504f87d189028085ead6ed23c
treec761b86725db80481b69b8c5752c1f8b317a066b
parentfbc4e0fdfcefaa556584105a3beacbe64dac57a4
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