makedevs: Create blocks of devices with the correct uid/gid
authorPeter Kjellerstedt <pkj@axis.com>
Wed, 29 May 2013 11:47:17 +0000 (11:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 May 2013 19:59:12 +0000 (20:59 +0100)
commit585303ca848446b7674462701ca402d2102e8226
tree8e3b0223e9d71e7167d614fd4d111d80ccd0d3eb
parent755581804f859a5f9b7522368d51b792642eb999
makedevs: Create blocks of devices with the correct uid/gid

When creating a block of devices (i.e., when count > 0), the wrong
path was used with the call to chown(), effectively trying to change
the owner of some (probably) non-existent file. Thus the created
device nodes were always owned by root.

(From OE-Core rev: e7796880164d6a37c2699a94e1c5391337c5eaa5)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c