On Fri, Nov 4, 2011 at 4:00 PM, Denys Vlasenko <[email protected]> wrote:
> On Fri, Nov 4, 2011 at 12:41 PM, Natanael Copa <[email protected]> 
> wrote:
>> Displays a message that an account is not available and
>> exits non-zero. It is intended as a replacement shell field
>> for accounts that have been disabled.
>>
>> If the file /etc/nologin.txt exists, displays its contents
>> to the user instead of the default message.
>>
>> login_main                                           -     108    +108
>> .rodata                                           101552  101625     +73
>> packed_usage                                       23057   23072     +15
>> applet_names                                        1882    1890      +8
>> applet_main                                         1140    1144      +4
>> bbconfig_config_bz2                                 5214    5217      +3
>> applet_nameofs                                       570     572      +2
>> ------------------------------------------------------------------------------
>> (add/remove: 2/0 grow/shrink: 6/0 up/down: 213/0)             Total: 213 
>> bytes
>>   text    data     bss     dec     hex filename
>>  888199    6311    4712  899222   db896 busybox_old
>>  888436    6315    4712  899463   db987 busybox_unstripped
>>
>
> Looks like it can be implemented as shell script in fewer bytes.


This is not the first time we are meeting an applet which begs for
shell implementation.

I think we need to bite a bullet and keep such shell implementations
in the source. For now I dropped nologin into a new directory,
busybox/applets_sh/.

-- 
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to