mdev: do not follow symlinks in /sys (as was intended prior to rev 18811).
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 6 Jul 2008 07:00:11 +0000 (07:00 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 6 Jul 2008 07:00:11 +0000 (07:00 -0000)
commitd48e81f0cda73aca49cd852212a62e879cf35b86
treebc7f639f139f1fe5d65dd20b5819d41a5acf2cea
parentff182a3d68462cb7ec38affa1afb04a06031862f
mdev: do not follow symlinks in /sys (as was intended prior to rev 18811).
If this breaks things, please document why!
mdev,init: use shared code for fd sanitization

function                                             old     new   delta
bb_daemonize_or_rexec                                155     172     +17
mdev_main                                            500     505      +5
init_main                                            907     856     -51
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 22/-51)            Total: -29 bytes
init/init.c
libbb/vfork_daemon_rexec.c
util-linux/mdev.c