Re: [PATCH] 2nd try: improve checks on usernames

2011-08-02 Thread walter harms
Am 01.08.2011 22:01, schrieb Tito: Hi, this patch improves the checks performed on usernames with the die_if_bad_username() function by adduser and addgroup. The changes are: 1) better comments; 2) use of the portable filename character set plus '@' and '$'; 3) don't use isalnum as it

Re: [PATCH] 2nd try: improve checks on usernames

2011-08-02 Thread Tito
On Tuesday 02 August 2011 10:39:22 walter harms wrote: Am 01.08.2011 22:01, schrieb Tito: Hi, this patch improves the checks performed on usernames with the die_if_bad_username() function by adduser and addgroup. The changes are: 1) better comments; 2) use of the portable filename

Re: [PATCH] 2nd try: improve checks on usernames

2011-08-02 Thread walter harms
Am 02.08.2011 15:10, schrieb Tito: On Tuesday 02 August 2011 10:39:22 walter harms wrote: Am 01.08.2011 22:01, schrieb Tito: Hi, this patch improves the checks performed on usernames with the die_if_bad_username() function by adduser and addgroup. The changes are: 1) better comments;

Config error - PHP with HTTPD

2011-08-02 Thread Elias Lovén Larsson
I cannot for the life figure this out by myself, hoping there's anyone on this list who knows what could be wrong. I'm trying to set up the HTTPD to use PHP (5.2.14) on Busybox (1.15.3, also tried 1.18.5). This happens when I run it... # httpd -fvv -c /etc/httpd.php.conf -p 81 -h /usr/www-php

Re: [PATCH] 2nd try: improve checks on usernames

2011-08-02 Thread Rich Felker
On Tue, Aug 02, 2011 at 03:37:35PM +0200, walter harms wrote: granted, ntl it would be nice to have a better error that it does not work. Perhaps (s-name) = position ? illegal character at position %d,(s-name) ? wfprintf(stderr, illegal character %.1s\n, s); I'm sure everyone will flame me for

Re: Config error - PHP with HTTPD

2011-08-02 Thread Sertac TULLUK
Dear Elias; About 1.5 years ago, I tried to compile busybox HTTPD with PHP for a long time (I tested busybox 1.16.X and 1.18.X).. Unfortunately, it looks very hard to achieve this. I couldn't succeed it.. However, after that time, I compiled THTTPD with PHP succesfully for arm-linux. It is

udhcpc -r broken ?

2011-08-02 Thread Thomas Petazzoni
Hello, As I understand it, the -r option of udhcpc allows to tell the DHCP client that it should try to use the given IP address and suggest it to the DHCP server. However, it seems I can't get it to work (Busybox 1.18.4 is used) : # udhcpc -r 192.168.0.51 udhcpc (v1.18.4) started Sending

Re: Config error - PHP with HTTPD

2011-08-02 Thread Elias Lovén Larsson
Hello Sertac Did you experience precisely the same problem as I am, of httpd not accepting what appears to be a valid config file? I must thank you for the offer, but the benefit of using Busybox is that it's already in use on the target system (a Dlink NAS running the alt-f firmware, where every

Re: Config error - PHP with HTTPD

2011-08-02 Thread Robert Schumann
Hi Elias! I'm not very deep into your issue and I cannot verify your problem, but... Am 02.08.2011 16:08, schrieb Elias Lovén Larsson: This happens when I run it... # httpd -fvv -c /etc/httpd.php.conf -p 81 -h /usr/www-php httpd: config error '*.php:/usr/bin/php-cgi' in '/etc/httpd.php.conf'

Re: Config error - PHP with HTTPD

2011-08-02 Thread Harald Becker
Hallo Elias! -- A:127.0.0.1 D:* A:192.168.1.0/255.255.255.0 *.php:/usr/bin/php-cgi -- Did you make sure there is at least one trailing new line in your configuration file. It seems to me Busybox httpd rejects inproperly terminated config lines. In addition the arise of

mdev calls script with ACTION=add when remove is echoed to a uevent file.

2011-08-02 Thread Sameer Naik
Hello, I am using mdev from busybox-1.18.5 to populate devices at boot time as well as to handle hotplugging of various usb devices such as usb disk drives. In my filesystem, at boot after mdev is started, a coldplug script is executed that will echo add to uevent files of various devices that i

[PATCH] improve checks on usernames V3.

2011-08-02 Thread Tito
Hi, minor improvements vs. v2 patch: 1) some more comments added. 2) we now print the position of the illegal character. Hints, critics, improvements are welcome. Thanks to all who helped. Ciao, Tito void FAST_FUNC die_if_bad_username(const char *name) { const char *s = name;

Re: [PATCH] improve checks on usernames V3.

2011-08-02 Thread Ralf Friedl
Tito wrote: Hi, minor improvements vs. v2 patch: 1) some more comments added. 2) we now print the position of the illegal character. ... /* We don't use isalnum as it will allow locale-specific non-ASCII */ /* letters in legacy 8-bit locales. * What is the

Re: [PATCH] improve checks on usernames V3.

2011-08-02 Thread Tito
On Tuesday 02 August 2011 22:16:18 Ralf Friedl wrote: Tito wrote: Hi, minor improvements vs. v2 patch: 1) some more comments added. 2) we now print the position of the illegal character. ... /* We don't use isalnum as it will allow locale-specific non-ASCII */

Re: [PATCH] improve checks on usernames V3.

2011-08-02 Thread Harald Becker
Hallo Ralf! On 02.08.2011 22:16, Ralf Friedl wrote: What is the problem with locale-specific characters? Portability is the problem. Especially if tar files of such users and untar it on other systems those none-portable user names may produce trouble. Sometimes serious trouble. I've had to

Re: Config error - PHP with HTTPD

2011-08-02 Thread Elias Lovén Larsson
Hallo Harald! Problem appears to be solved (see my earlier reply to Robert Schumann). I had suspected a CR+LF-issue earlier, but notepad++ confirmed there was no trace of Windows defilement in the configuration file. Never thought to consider the charset, but n++ confirms it's in ANSI. Good

Re: Config error - PHP with HTTPD

2011-08-02 Thread Thomas Petazzoni
Le Tue, 2 Aug 2011 23:23:28 +0200, Elias Lovén Larsson thegreatp...@gmail.com a écrit : Hallo Robert! I was not able to figure out what build options the Ubuntu package used, but I hardly think it matters any more. Out of the four flags you mentioned, two were present and enabled

Re: Config error - PHP with HTTPD

2011-08-02 Thread Harald Becker
Hallo Elias! On 03.08.2011 00:19, Elias Lovén Larsson wrote: Is there a file in the source or a wiki page featuring all of these options, so that I may learn about them myself? :) Have you ever tried make menuconfig ? -- Harald ___ busybox mailing

Re: Keyboard tables with string definitions and diacriticals

2011-08-02 Thread Harald Becker
Hi all, appended is a quick and dirty (no optimization) standalone version of a dumpkeylist program that would be a replacement of dumpkmap with the following changes: 1) Use textual representation on output (not binary) Textual keymaps are independent of CPU architecture and will not produce