Re: /sbin/init overrides HOME and TERM env vars

2022-03-11 Thread Paul Fox
tenv("HOME") == NULL) > +putenv((char *) "HOME=/"); > + > putenv((char *) bb_PATH_root_path); > > What do you think? > > Regards, > jkm > ___ > busybox mailing list > busybox@busybox.net > htt

Re: /sbin/init overrides HOME and TERM env vars

2022-03-11 Thread Paul Fox
> > Maybe adding a CONFIG_CHECK_VT_OPENQRY in order to make this check > optional would be a good idea? > > Please share your thoughts. > > Regards, > jkm > > > _______ >

Re: add support for PATH in crontabs

2022-03-08 Thread Paul Fox
-- (add/remove: 0/1 grow/shrink: 2/1 up/down: 80/-108) Total: -28 bytes textdata bss dec hex filename 7829227671528 82587 1429b busybox_old 7826427671528 82559 1427f busybox_unstripped =-- paul fo

add support for PATH in crontabs

2022-03-07 Thread Paul Fox
=-- paul fox, p...@foxharp.boston.ma.us (arlington, ma) From 6b20114fb967022255749b55ca1611b797003bb8 Mon Sep 17 00:00:00 2001 From: Paul Fox Date: Mon, 7 Mar 2022 11:35:28 -0500 Subject: [PATCH] crond: implement support for setting PATH in crontab files It's very inconvenient

Re: [PATCH] udhcpc: give up on repeated errors

2008-05-20 Thread Paul Fox
http://busybox.net/cgi-bin/mailman/listinfo/busybox =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: [PATCH] udhcpc: give up on repeated errors

2008-05-20 Thread Paul Fox
=- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: choice of control operators in scripts

2008-05-14 Thread Paul Fox
it in the usual shell idiom and write: [ $foo ] or [ -n $foo ] but this [ x$foo != x ] or this [ x$foo != x ] are just silly. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http

Re: choice of control operators in scripts

2008-05-12 Thread Paul Fox
denys wrote: On Monday 12 May 2008 23:06, Paul Fox wrote: If you fell paranoid today (highly recommended), add x to guard against less than ideal implementations of [] which can be confused by e.g. foo=-n : [ x$foo = xbar ] I have no experience of shells

Re: trapping errors in test scripts

2008-05-07 Thread Paul Fox
prone. Thoughts? Cheers, -- Cristian ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox =- paul fox, [EMAIL PROTECTED

Re: [patch] shell/ash.c: mimics dash WRT set [+-]o

2008-05-06 Thread Paul Fox
to happen. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: just another one of my rumblings

2008-04-28 Thread Paul Fox
expressions. it only clarifies for those not used to the more minimal idiom. paul p.s. green. the woodshed must be green, of course. any idiot can see that. ;-) =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net

Re: just another one of my rumblings

2008-04-25 Thread Paul Fox
- mkdir -p .tmpdir.$applet + mkdir -p .tmpdir.$applet || return 1 mkdir may report error when dir already exist - which not mkdir -p. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox

Re: just another one of my rumblings

2008-04-25 Thread Paul Fox
[ -n $var ] is clear. [ $var ] is not. it's exactly analogous to if (foo != 0) vs. if (foo). it's all subjective. i'd probably have to look up -n. :-) paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox

Re: just another one of my rumblings

2008-04-24 Thread Paul Fox
as: pwd=$(pwd) : ${tsdir:=$pwd} : ${bindir:=${pwd%/*}} Just sayin'... :-) I'm assuming this script is declared #!/bin/bash at the top, due to all the bashisms it uses? and if so, one could use $PWD. : ${tsdir:=$PWD} : ${bindir:=${PWD%/*}} paul =- paul

Re: [patch] fbsplash

2008-04-04 Thread Paul Fox
denys wrote: On Friday 04 April 2008 11:27, Michele Sanges wrote: Il giorno ven, 28/03/2008 alle 09.06 -0400, Paul Fox ha scritto: is the proper solution simply to open it twice, once for reading, and once for writing? this guarantees a writer (which will never write anything

Re: fbsplash

2008-03-28 Thread Paul Fox
for reading, and once for writing? this guarantees a writer (which will never write anything). paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: v1.10.0 swapon: swapfile has holes - blocksize ?

2008-03-27 Thread Paul Fox
understand. whose swaponoff.c are you running, if not busybox's? paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: v1.10.0 swapon: swapfile has holes - blocksize ?

2008-03-26 Thread Paul Fox
) check that they all look right. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: [PATCH] Ash support for replace and subsitution

2008-03-24 Thread Paul Fox
it in. not much thought went into it. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: Problem running Buildroot2 microcom package with Busybox

2008-03-20 Thread Paul Fox
is pretty ancient, so who knows, maybe it's a known problem, but if so probably no one remembers it anymore. but mainly, this doesn't sound like a busybox problem. sounds like a PATH issue. paul =- paul fox, [EMAIL PROTECTED

verizon settles over busybox infringement

2008-03-19 Thread Paul Fox
rob or erik is still on the list, can you tell us anything more? do we even get a woohoo, we won another one! message? :-) paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin

Re: vi alarm signals

2008-03-12 Thread Paul Fox
? make it configurable? put it inside a developer-only ifdef of some sort? paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

vi alarm signals

2008-03-10 Thread Paul Fox
this code? make it configurable? put it inside a developer-only ifdef of some sort? paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

vi bug fixes

2008-03-06 Thread Paul Fox
bad has happened. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: busybox config

2008-03-06 Thread Paul Fox
they do not do it. So default .config should replicate itself in busybox and those want to minimize the footprint would disable the option. What do you think about? i believe what you want is already present, in the bbconfig applet: CONFIG_BBCONFIG=y =- paul fox

Re: busybox config

2008-03-06 Thread Paul Fox
[ moving this back to the list ] 2008/3/6, Paul Fox [EMAIL PROTECTED]: I think busybox --config should show the original .config content from which has been generate (better if stored in compressed form). Kernel use .config too but share it via /proc (for obvious reasons). I

Re: vi bug fixes

2008-03-06 Thread Paul Fox
was vi's internal help text.) this may make it more obvious that the '-c' option exists. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: [patch] - bbsplash applet

2008-03-04 Thread Paul Fox
be a pnm utility to convert pnm images to raw rgb data, though i don't think there was, last time i looked -- i had to write my own pnmto565.c (which looked much like your drawimage() routine). paul =- paul fox, [EMAIL PROTECTED

Re: [patch] - bbsplash applet

2008-03-04 Thread Paul Fox
. in fact, the code from the current bbsplash patch is obviously for a 565 display: + thispix = (((short)pix[0] 8) 0xf800) + | (((short)pix[1] 3) 0x07e0) + | ((short)pix[2] 3); + paul =- paul

Re: LPR: code cleanup++

2008-02-21 Thread Paul Fox
that i've upgraded all of my machines to recent ubuntu releases, and pdq isn't apt-available, i'm running CUPS, and it sure feels complicated in comparison to pdq. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox

Re: Busybox make, modify my /dev/null on host

2008-02-15 Thread Paul Fox
vda wrote: On Thursday 14 February 2008 14:50, Paul Fox wrote: # ls -l /dev/null crwxrwxrwx1 root root 1, 3 Feb 14 07:04 /dev/null # gcc file.c -o /dev/null /tmp/ccopqxnU.o: In function `main': file.c:(.text+0x1d): undefined reference

Re: Busybox make, modify my /dev/null on host

2008-02-14 Thread Paul Fox
=- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: [patch] vi: add 3 commands: '_' ',' and gg for vi

2008-02-13 Thread Paul Fox
=- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: [patch] vi: add 3 commands: '_' ',' and gg for vi

2008-02-12 Thread Paul Fox
) + dc_G: dot = end - 1; // assume E-O-F if (cmdcnt 0) { dot = find_line(cmdcnt);// what line is #cmdcnt =- paul fox, [EMAIL PROTECTED

Re: splash image during boot - new applet?

2008-02-04 Thread Paul Fox
Hello all! On Monday 04 February 2008 17:39:58 Paul Fox wrote: how does a user-level daemon provide a nice user experience? don't you still need kernel splash support in order to fill the screen until you get past init? Assuming that getting up to init is fast enough (less

Re: splash image during boot - new applet?

2008-02-04 Thread Paul Fox
daemon provide a nice user experience? don't you still need kernel splash support in order to fill the screen until you get past init? paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http

Re: fsck -A goes into infinite loop and kills all processes

2008-01-31 Thread Paul Fox
a clue as to what's being run. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: find / rm corrupting memory

2008-01-26 Thread Paul Fox
it goes ... -mike and/or, perhaps if roy could build with -g, he could assist in debugging. of, send the executable to someone who can run gdb. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http

Re: [patch] [rfc] Re: udhcpc eating too much cpu

2008-01-17 Thread Paul Fox
supports? i simply don't know, having never used BPF, and i'm wondering whether this needs to be configurable. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo

Re: udhcp discovery takes minutes

2008-01-15 Thread Paul Fox
=- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: Strange problems with FEATURE_VI_8BIT

2008-01-14 Thread Paul Fox
was correct.) paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: typing ^V to a shell

2008-01-12 Thread Paul Fox
into non-fancy, where it belongs, fancy keys only saves 198 bytes. given the savings, and the high cost of having editing at all, i think we should remove the CONFIG check altogether. any objections to me doing that? paul =- paul fox, [EMAIL PROTECTED

Re: Again, german umlauts in ash command line prompt

2008-01-10 Thread Paul Fox
characters. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: renice +N broken?

2007-12-10 Thread Paul Fox
On Monday 10 December 2007 11:01, Paul Fox wrote: it seems that renice +N pid no longer works. i assume it's supposed to, though the usage message doesn't mention this syntax. i started trying to debug it, but i confess the innards of xatoi_num_template.c were awfully scary

minor bug in kill

2007-11-14 Thread Paul Fox
); + bb_error_msg(You need to specify whom to kill); return EXIT_FAILURE; } =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

diffing releases

2007-11-12 Thread Paul Fox
. thanks! paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: diffing releases

2007-11-12 Thread Paul Fox
ls svn://svn.uclibc.org/tags thanks! i hadn't really understood the pathname nature of tags and branches before. i was trying too hard to make it act like CVS. :-) paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list

Re: /etc/passwd and symlinks

2007-11-08 Thread Paul Fox
to return a dangling linkname. i'll fix this too. thanks for your comments. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: /etc/passwd and symlinks

2007-11-08 Thread Paul Fox
= xrealloc(buf, bufsize); lpc = bb_get_last_path_component_strip(buf); strcpy(lpc, linkpath); free(linkpath); } } } =- paul fox, [EMAIL PROTECTED

Re: svn commit: trunk/busybox: include libbb

2007-11-08 Thread Paul Fox
sense. =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: /etc/passwd and symlinks

2007-11-07 Thread Paul Fox
On Tuesday 06 November 2007 19:55, Paul Fox wrote: is there any reason that passwd and chpasswd shouldn't follow symlinks to find /etc/passwd? i have a patch to allow this, and although i've written it with a CONFIG item to protect the change, i'm wondering

Re: udhcpc general questions

2007-11-07 Thread Paul Fox
it tries to renew the address, the server will NAK the request, and the script will be so informed. with $1==renew? when the client is in (or probably, when it enters) the renew state. it sounds like you'd benefit from reading a DHCP protocol overview. paul =- paul fox, [EMAIL

Re: udhcpc and leases

2007-11-07 Thread Paul Fox
an overview of the dhcp protocol. your questions (though good ones) are going beyond the scope of this list, i'm afraid. (short answer: the lease won't expire if your client keeps renewing it.) paul =- paul fox, [EMAIL PROTECTED

Re: /etc/passwd and symlinks

2007-11-07 Thread Paul Fox
). paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

/etc/passwd and symlinks

2007-11-06 Thread Paul Fox
is updated. + config SU bool su default n =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

insmod error message

2007-11-05 Thread Paul Fox
), ret); } is the return value from a failed __NR_init_module actually useful? it looks more like leftover debugging output. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net

Re: moving /bin/ip to /sbin/ip?

2007-09-11 Thread Paul Fox
On Tuesday 11 September 2007 05:01, Paul Fox wrote: On Mon, Sep 10, 2007 at 10:40:11PM +0200, Natanael Copa wrote: It would be a lot easier for me to have the ip application in the same place as the original iproute2. In fact it makes things alot more easy to have

Re: moving /bin/ip to /sbin/ip?

2007-09-10 Thread Paul Fox
init.d script -- just move the ip app, or create a new link to it. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: '/' in scripts not getting solved

2007-09-07 Thread Paul Fox
=- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

patch: allow default PATH extension at build time

2007-09-07 Thread Paul Fox
= + PATH=/sbin:/usr/sbin:/bin:/usr/bin BB_ADDITIONAL_PATH; const int const_int_0; =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: issue regarding ESC in vi

2007-09-07 Thread Paul Fox
in vi.c :set noflash =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: fix for find / /boot -xdev

2007-09-06 Thread Paul Fox
On Wednesday 05 September 2007 22:38, Natanael Copa wrote: On Wed, 2007-09-05 at 14:48 -0400, Paul Fox wrote: currently, busybox find / /boot -xdev gives no output at all, rather than giving equivalent of find / -xdev; find /boot -xdev ... Does this need

patch: short form for unzip archive listing

2007-09-06 Thread Paul Fox
files without prompting\n \ -p Send output to stdout\n \ =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

fix for find / /boot -xdev

2007-09-05 Thread Paul Fox
= exec_actions(actions, fileName, statbuf); =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

patch: tftp retry/timeout tweaking

2007-09-05 Thread Paul Fox
TFTP_MAXTIMEOUT) { + waittime = TFTP_MAXTIMEOUT; + } + goto send_again; /* resend last sent pkt */ default: bb_perror_msg(select); =- paul fox, [EMAIL

Re: patch: tftp retry/timeout tweaking

2007-09-05 Thread Paul Fox
On Wed, 2007-09-05 at 17:20 -0400, Paul Fox wrote: currently the busybox tftp client will retry forever, due to a misplaced reinitialization of the retry counter. should this be added to fixes-1.7.0? perhaps the infinite timeout should be fixed, but the backoff part isn't critical

Re: Monitor black after 10 Minutes

2007-07-27 Thread Paul Fox
does is emit the previously mentioned escape sequence. ( ESC [ 9 ; 0 ] ) TERM=linux setterm -blank 0 | hexdump -C paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin

Re: Monitor black after 10 Minutes

2007-07-27 Thread Paul Fox
How am I supposed to switch off console blanking then? In a bootscript? send the escape sequence to the correct tty, e.g.: echo esc-sequence /dev/tty0 =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox

Re: [PATCH] add chpasswd applet

2007-07-19 Thread Paul Fox
attached you will find a drop in replacement for chpasswd.c with some more busyboxification does this mean that passwd no longer needs the ability to take a password on stdin? there was a thread on that topic a week or two ago. paul =- paul fox, [EMAIL PROTECTED

Re: [PATCH] vi read-only mode bugfix and enhancement

2007-07-17 Thread Paul Fox
never be called ex. :-) paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: weird bash script error

2007-07-16 Thread Paul Fox
___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman

Re: no echo on shell

2007-07-16 Thread Paul Fox
the interrupt signal, in order to restore the tty the way it found it, but many do not. in the meantime, stty echo will reenable echo. a good command to use is stty sane, which restores most (all?) of the default tty settings. paul =- paul fox, [EMAIL PROTECTED

Re: Ash Documentation?

2007-06-27 Thread Paul Fox
be applicable (to some extent) to ash. am i way off base on this? paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: [RFC] alternative bss approach

2007-06-14 Thread Paul Fox
compilation? then you could play games with that section for each applet, without breaking the any bss from other common files that isn't supposed to be merged. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox

Re: [PATCH] sanitize when kernel starts init without any fd opened

2007-06-13 Thread Paul Fox
a trace file to understand what's happening. i agree. the current init behavior is clearly broken. paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo

Re: condition of dpkg?

2007-05-30 Thread Paul Fox
well it works? if the space were available, would using the real dpkg be a better idea? paul =- paul fox, [EMAIL PROTECTED] ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

condition of dpkg?

2007-05-25 Thread Paul Fox
from global cleanups) in quite a long time. dpkg.c, however, has been getting recent bugfixes. can anyone with recent experience comment on how well it works? if the space were available, would using the real dpkg be a better idea? paul =- paul fox, [EMAIL PROTECTED