[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] nologin: new applet.
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2011-11-10 17:04:24
Message-ID: CAK1hOcN96GSvG+fhgQ5dQGjfmnk97fbjqjyNyj94Tmt+6OnQzg () mail ! gmail ! com
[Download RAW message or body]

On Fri, Nov 4, 2011 at 4:00 PM, Denys Vlasenko <vda.linux@googlemail.com> w=
rote:
> On Fri, Nov 4, 2011 at 12:41 PM, Natanael Copa <natanael.copa@gmail.com> =
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 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 - =A0 =A0 108 =A0 =A0+108
>> .rodata =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 101552 =A0101625 =A0 =A0 +73
>> packed_usage =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 23057 =A0 23072 =A0 =A0 +15
>> applet_names =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 =A01882 =A0 =A01890 =A0 =A0 =A0+8
>> applet_main =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 1140 =A0 =A01144 =A0 =A0 =A0+4
>> bbconfig_config_bz2 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 5214 =A0 =A05217 =A0 =A0 =A0+3
>> applet_nameofs =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 570 =A0 =A0 572 =A0 =A0 =A0+2
>> ------------------------------------------------------------------------=
------
>> (add/remove: 2/0 grow/shrink: 6/0 up/down: 213/0) =A0 =A0 =A0 =A0 =A0 =
=A0 Total: 213 bytes
>> =A0 text =A0 =A0data =A0 =A0 bss =A0 =A0 dec =A0 =A0 hex filename
>> =A0888199 =A0 =A06311 =A0 =A04712 =A0899222 =A0 db896 busybox_old
>> =A0888436 =A0 =A06315 =A0 =A04712 =A0899463 =A0 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
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic