su: move restricted_shell into su.c (the only user)
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 26 Feb 2010 09:01:18 +0000 (10:01 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 26 Feb 2010 09:01:18 +0000 (10:01 +0100)
commit26ffe81188a5555824bc86b1953517f7ba4524a9
tree79b05ca36349747f5bf5eee0cfcf87a29db5f233
parentfd686a262fa34b71900b010b4b31d7e2e3f3385c
su: move restricted_shell into su.c (the only user)

function                                             old     new   delta
su_main                                              448     468     +20
buffer_fill_and_print                                179     196     +17
scriptreplay_main                                    205     208      +3
localcmd                                             275     277      +2
hash_find                                            233     234      +1
devmem_main                                          469     463      -6
install_main                                         724     716      -8
setusershell                                          11       -     -11
find_pair                                            187     169     -18
restricted_shell                                      49       -     -49
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 5/3 up/down: 43/-92)            Total: -49 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/Kbuild
libbb/restricted_shell.c [deleted file]
loginutils/su.c