server: skip chown if not a super user 43/131243/1
authorBoram Park <boram1288.park@samsung.com>
Fri, 26 May 2017 04:08:34 +0000 (13:08 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 26 May 2017 04:08:47 +0000 (13:08 +0900)
commit8a3937ce76415837b871c775806a2c3ab1e7ed10
tree2bd5f231d63373a8654794ce817c132f36148ff0
parent27b219f2029a624bdc97caef70b1d536106f1a22
server: skip chown if not a super user

If tdm_display_init is called by non super user, we don't need to
change the owner and group of a tdm socket file. And also changing
the owner of the tdm socket file which is created by non super user
is not allowed. So we just skip chown in this case.

Change-Id: Ib119becc4b9048f0fcc79c52089cfe04907cac60
src/tdm_server.c