]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libuuid: Make sure fd's 0, 1, and 2 are valid before exec'ing uuidd
authorTheodore Ts'o <tytso@mit.edu>
Tue, 30 Jun 2009 01:19:28 +0000 (21:19 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Jul 2009 03:26:09 +0000 (23:26 -0400)
commit59ca44715a317ee48afed34ca7ef1ab710ba5046
tree7e2cd307163c8ddd76a01cea9ed1ed413bf7c2ce
parent6dc9c350bdaca48805fbd319867a0c62e79a4482
libuuid: Make sure fd's 0, 1, and 2 are valid before exec'ing uuidd

When closing all of the file descriptors before starting uuidd, make
sure file descriptors 0, 1, and 2 are reserved by opening /dev/null.
This prevents strange bugs caused by assumptions regarding file
descriptors <= 2 as being special.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
shlibs/uuid/src/gen_uuid.c