Re: [PATCH] cttyhack: print detected ctty name when called without parameters

2011-10-31 Thread Alexander Shishkin
On Mon, 31 Oct 2011 13:21:01 +0100, Denys Vlasenko vda.li...@googlemail.com wrote: On Mon, Oct 31, 2011 at 12:25 PM, Denys Vlasenko vda.li...@googlemail.com wrote: On Mon, Oct 31, 2011 at 1:15 AM, Alexander Shishkin virtu...@slind.org wrote: Sometimes there's a need to figure out

Re: [PATCH] cttyhack: print detected ctty name when called without parameters

2011-10-31 Thread Alexander Shishkin
On Mon, 31 Oct 2011 16:58:09 +0100, Denys Vlasenko vda.li...@googlemail.com wrote: On Mon, Oct 31, 2011 at 4:10 PM, Alexander Shishkin virtu...@slind.org wrote: On Mon, 31 Oct 2011 13:21:01 +0100, Denys Vlasenko vda.li...@googlemail.com wrote: On Mon, Oct 31, 2011 at 12:25 PM, Denys

[PATCH] cttyhack: print detected ctty name when called without parameters

2011-10-30 Thread Alexander Shishkin
cttyhack_main324 320 -4 -- (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-4) Total: -4 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org --- shell/cttyhack.c

Re: [PATCH] tar: remove leading / and ../ on reading and writing

2011-03-01 Thread Alexander Shishkin
On Mon, Feb 28, 2011 at 11:48:44PM +0100, Ralf Friedl wrote: Alexander Shishkin wrote: Currently, tar will add members with names starting with the prefixes to an archive unmodified, and will then refuse to extract from such archive. However, GNU tar will strip these prefixes upon creating

Re: 2 issues with tar

2011-03-01 Thread Alexander Shishkin
On 1 March 2011 18:18, Denys Vlasenko vda.li...@googlemail.com wrote: On Monday 28 February 2011 09:23, Alexey Soloviev wrote: Hello, Met 2 problems with tar and wander if they are new or known. Issue 1: tar doesn't restore files or directories added with relative name starting with ../

Re: 2 issues with tar

2011-03-01 Thread Alexander Shishkin
On Wed, Mar 02, 2011 at 12:58:58AM +0100, Denys Vlasenko wrote: On Tuesday 01 March 2011 21:14, Alexander Shishkin wrote: On 1 March 2011 18:18, Denys Vlasenko vda.li...@googlemail.com wrote: On Monday 28 February 2011 09:23, Alexey Soloviev wrote: Hello, Met 2 problems with tar

[PATCH] tar: remove leading / and ../ on reading and writing

2011-02-28 Thread Alexander Shishkin
: 81 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org --- archival/libarchive/get_header_tar.c | 48 +++-- archival/tar.c | 11 +--- include/archive.h|2 + 3 files changed, 42 insertions(+), 19 deletions

Re: [PATCH] tar: remove leading / and ../ on reading and writing

2011-02-28 Thread Alexander Shishkin
On Mon, Feb 28, 2011 at 05:57:37PM +0100, walter harms wrote: Thanks for your comments, I'll see if I can come up with something smaller. Am 28.02.2011 11:24, schrieb Alexander Shishkin: Currently, tar will add members with names starting with the prefixes to an archive unmodified

[PATCHv2] tar: remove leading / and ../ on reading and writing

2011-02-28 Thread Alexander Shishkin
-- (add/remove: 2/1 grow/shrink: 0/4 up/down: 146/-114) Total: 32 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org --- archival/libarchive/get_header_tar.c | 48 +++-- archival/tar.c | 11 +--- include/archive.h

[PATCH] diff: return 1 when skipping directories with -r, but without -N

2011-01-25 Thread Alexander Shishkin
Diff in diffutils will return 1 in case -r option is specified without -N something exists only in one of the directories. Signed-off-by: Alexander Shishkin virtu...@slind.org --- editors/diff.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/editors/diff.c b

ash parse tree and stack boundaries

2010-11-29 Thread Alexander Shishkin
Hi, There's a problem in busybox ash, which is running out of stack when parsing very long input (funnily same bug also exists in bash), like $ for i in $(seq 10); do echo -n :;; done | busybox sh Segmentation fault which happens in evaltree() calling itself for each : node. Now, I'm

[PATCH] mount: redo nfs error printing, fix memory leak (0 bytes)

2010-10-27 Thread Alexander Shishkin
-- (add/remove: 1/1 grow/shrink: 1/2 up/down: 82/-82) Total: 0 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org --- util-linux/mount.c | 30 +++--- 1 files changed, 15 insertions(+), 15

[PATCH] mount: fix data argument

2010-10-26 Thread Alexander Shishkin
When mounting a filesystem without any additional options (data parameter to the mount(2) syscall), pass NULL instead of an empty string like GNU mount does. This fixes, for example mounting cgroup fs with bbox mount. Signed-off-by: Alexander Shishkin virtu...@slind.org --- util-linux/mount.c

Re: [PATCH 1/2] pmap: rid of a warning (total 0 bytes)

2010-10-22 Thread Alexander Shishkin
On Fri, Oct 22, 2010 at 01:15:34 +0200, Denys Vlasenko wrote: On Thu, Oct 21, 2010 at 12:32 PM, Alexander Shishkin virtu...@slind.org wrote: Signed-off-by: Alexander Shishkin virtu...@slind.org ---  procps/pmap.c |    4 ++--  1 files changed, 2 insertions(+), 2 deletions(-) diff

Re: [PATCH] xmkstemp: safe mkstemp (-65 bytes)

2010-10-22 Thread Alexander Shishkin
On Fri, Oct 22, 2010 at 01:44:08 +0200, Denys Vlasenko wrote: On Fri, Oct 22, 2010 at 1:35 PM, walter harms wha...@bfs.de wrote: from the man page:       More generally, the POSIX specification of mkstemp() does not say   any-       thing  about  file  modes, so the application should

[PATCH 1/2] pmap: rid of a warning (total 0 bytes)

2010-10-21 Thread Alexander Shishkin
Signed-off-by: Alexander Shishkin virtu...@slind.org --- procps/pmap.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/procps/pmap.c b/procps/pmap.c index cfa94ed..52cf229 100644 --- a/procps/pmap.c +++ b/procps/pmap.c @@ -44,7 +44,7 @@ enum { static void

[PATCH 2/2] nbd-client: kill unused variable (total 0 bytes)

2010-10-21 Thread Alexander Shishkin
Signed-off-by: Alexander Shishkin virtu...@slind.org --- networking/nbd-client.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/networking/nbd-client.c b/networking/nbd-client.c index 5ac190c..8b856ed 100644 --- a/networking/nbd-client.c +++ b/networking/nbd-client.c

[PATCH] xmkstemp: safe mkstemp (-65 bytes)

2010-10-21 Thread Alexander Shishkin
-- (add/remove: 1/0 grow/shrink: 0/6 up/down: 90/-155) Total: -65 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org --- coreutils/dos2unix.c |8 +++- editors/diff.c|5 ++--- editors/patch.c

[PATCH 1/2] smemcap: close /proc handle upon cleaning up

2010-10-21 Thread Alexander Shishkin
Signed-off-by: Alexander Shishkin virtu...@slind.org --- procps/smemcap.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/procps/smemcap.c b/procps/smemcap.c index f951a5f..196c91f 100644 --- a/procps/smemcap.c +++ b/procps/smemcap.c @@ -125,5 +125,8 @@ int smemcap_main

Re: [PATCH] add-shell, remove-shell: new applets

2010-10-20 Thread Alexander Shishkin
On Wed, Oct 20, 2010 at 01:26:24 +0200, Denys Vlasenko wrote: On Wed, Oct 20, 2010 at 2:56 AM, Alexander Shishkin virtu...@slind.org wrote: How about this? (I left locking in place but applied other changes) function                                             old     new   delta

Re: [PATCH] add-shell, remove-shell: new applets

2010-10-20 Thread Alexander Shishkin
On Wed, Oct 20, 2010 at 04:36:48 +0200, Denys Vlasenko wrote: 2010/10/20 Alexander Shishkin virtu...@slind.org: On Wed, Oct 20, 2010 at 01:26:24 +0200, Denys Vlasenko wrote: On Wed, Oct 20, 2010 at 2:56 AM, Alexander Shishkin virtu...@slind.org wrote: How about this? (I left locking

[PATCH 1/2] tail: free tailbuf upon cleaning up

2010-10-20 Thread Alexander Shishkin
Signed-off-by: Alexander Shishkin virtu...@slind.org --- coreutils/tail.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/coreutils/tail.c b/coreutils/tail.c index 44698f3..df881a3 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c @@ -346,6 +346,7 @@ int tail_main(int

Re: [PATCH 1/2] tail: free tailbuf upon cleaning up

2010-10-20 Thread Alexander Shishkin
On Wed, Oct 20, 2010 at 11:58:05 +0300, Alexander Shishkin wrote: Signed-off-by: Alexander Shishkin virtu...@slind.org --- coreutils/tail.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/coreutils/tail.c b/coreutils/tail.c index 44698f3..df881a3 100644

[PATCH] add-shell, remove-shell: new applets

2010-10-19 Thread Alexander Shishkin
1248 +16 applet_nameofs 308 312 +4 -- (add/remove: 4/0 grow/shrink: 5/0 up/down: 667/0) Total: 667 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org

Re: [PATCH] add-shell, remove-shell: new applets

2010-10-19 Thread Alexander Shishkin
On Tue, Oct 19, 2010 at 11:18:43 +0200, Denys Vlasenko wrote: On Tuesday 19 October 2010 22:33, Alexander Shishkin wrote: [Sorry, the previous mail seems to have been eaten by the smarthost, apologies if it comes twice.] function old new

Re: [PATCH] add-shell, remove-shell: new applets

2010-10-19 Thread Alexander Shishkin
On Tue, Oct 19, 2010 at 06:33:50 -0500, Matthew Stoltenberg wrote: Why do you need it? (I ask because sometimes there _is_ a valid, but unknown to me, reason to have this or that tool in bbox). I will vouch that a lot of debian based systems seem to break if you don't have /etc/shells

[PATCH] add-shell, remove-shell: new applets

2010-10-19 Thread Alexander Shishkin
167 168 +1 -- (add/remove: 2/0 grow/shrink: 6/0 up/down: 676/0) Total: 676 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org --- debianutils/add-remove

Re: [PATCH] pmap: new applet

2010-08-17 Thread Alexander Shishkin
On Sun, Jul 31, 2010 at 01:23:54 +0300, Alexander Shishkin wrote: pmap is a tool used to look at processes' memory maps, normally found in procps package. It provides more readable and easily sortable output (one line per mapping) from maps/smaps files in /proc/PID/. This would help

Re: [PATCH] introduce CONFIG_BUFFER_SIZE()

2010-08-05 Thread Alexander Shishkin
On Sun, Aug 01, 2010 at 01:05:53 +0200, Denys Vlasenko wrote: On Saturday 31 July 2010 12:50, Alexander Shishkin wrote: On Fri, Jul 30, 2010 at 03:26:25 +0200, Denys Vlasenko wrote: On Tuesday 27 July 2010 16:21, Alexander Shishkin wrote: Since sizeof buffer won't work with dynamically

Re: [PATCH] introduce CONFIG_BUFFER_SIZE()

2010-07-31 Thread Alexander Shishkin
On Fri, Jul 30, 2010 at 03:26:25 +0200, Denys Vlasenko wrote: On Tuesday 27 July 2010 16:21, Alexander Shishkin wrote: Since sizeof buffer won't work with dynamically allocated buffers, and we still sometimes need to know the size of the whole buffer, we need a way to always obtain said

[PATCH] pmap: new applet

2010-07-31 Thread Alexander Shishkin
it into procps_read_smaps(), which does more detailed processing of a single PID's smaps data. Signed-off-by: Alexander Shishkin virtu...@slind.org --- include/libbb.h | 27 +++--- libbb/procps.c | 156 +-- procps/pmap.c | 109

Re: [PATCH] shells: set both hard and soft limits by default

2010-07-27 Thread Alexander Shishkin
On Tue, Jul 27, 2010 at 08:43:36 +0200, Denys Vlasenko wrote: On Monday 26 July 2010 15:22, Alexander Shishkin wrote: I didn't dig any farther than the bash manual, which suggests that the default behavior of ulimit when neither -H nor -S is set is to change both soft and hard limits

Re: [PATCH] pmap: new applet

2010-07-27 Thread Alexander Shishkin
On Wed, Jul 21, 2010 at 01:35:05 +0300, Alexander Shishkin wrote: pmap is a tool used to look at processes' memory maps, normally found in procps package. It provides more readable and easily sortable output (one line per mapping) from maps/smaps files in /proc/PID/. This would help

[PATCH v2] pmap: new applet

2010-07-27 Thread Alexander Shishkin
it into procps_read_smaps(), which does more detailed processing of a single PID's smaps data. Signed-off-by: Alexander Shishkin virtu...@slind.org --- include/applets.src.h |1 + include/libbb.h | 27 +++-- include/usage.src.h |8 +++ libbb/procps.c| 146

[PATCH] introduce CONFIG_BUFFER_SIZE()

2010-07-27 Thread Alexander Shishkin
Since sizeof buffer won't work with dynamically allocated buffers, and we still sometimes need to know the size of the whole buffer, we need a way to always obtain said size. Signed-off-by: Alexander Shishkin virtu...@slind.org --- include/libbb.h | 11 +-- 1 files changed, 9

Re: [PATCH] introduce CONFIG_BUFFER_SIZE()

2010-07-27 Thread Alexander Shishkin
On Tue, Jul 27, 2010 at 04:52:16 +0200, Bernhard Reutner-Fischer wrote: On Tue, Jul 27, 2010 at 05:21:58PM +0300, Alexander Shishkin wrote: Since sizeof buffer won't work with dynamically allocated buffers, and we still sometimes need to know the size of the whole buffer, we need a way

Re: [PATCH] introduce CONFIG_BUFFER_SIZE()

2010-07-27 Thread Alexander Shishkin
On 27 July 2010 18:03, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On Tue, Jul 27, 2010 at 05:55:13PM +0300, Alexander Shishkin wrote: On Tue, Jul 27, 2010 at 04:52:16 +0200, Bernhard Reutner-Fischer wrote: On Tue, Jul 27, 2010 at 05:21:58PM +0300, Alexander Shishkin wrote: Since

[PATCH] shells: set both hard and soft limits by default

2010-07-26 Thread Alexander Shishkin
I didn't dig any farther than the bash manual, which suggests that the default behavior of ulimit when neither -H nor -S is set is to change both soft and hard limits. This has been the case in earlier versions of busybox, too. Signed-off-by: Alexander Shishkin virtu...@slind.org --- shell

[PATCH] ash: clear may_have_traps on fork

2010-07-25 Thread Alexander Shishkin
a testcase for this regression. Signed-off-by: Alexander Shishkin virtu...@slind.org --- shell/ash.c |2 ++ shell/ash_test/ash-signals/signal7.right |1 + shell/ash_test/ash-signals/signal7.tests | 12 3 files changed, 15 insertions(+), 0 deletions

[PATCH] pmap: new applet

2010-07-21 Thread Alexander Shishkin
it into procps_read_smaps(), which does more detailed processing of a single PID's smaps data. Signed-off-by: Alexander Shishkin virtu...@slind.org --- include/applets.src.h |1 + include/libbb.h | 27 +++-- include/usage.src.h |8 +++ libbb/procps.c| 146

[PATCH] Fix out-of-tree build's recursion

2010-07-15 Thread Alexander Shishkin
the directories with Kbuild.src or Config.src in them are created in the out-of-tree build directory. A quick rebuild from scratch revealed no problems with this. Signed-off-by: Alexander Shishkin virtu...@slind.org --- scripts/gen_build_files.sh |4 ++-- 1 files changed, 2 insertions(+), 2 deletions

Re: kill a file with ambiguous distribution terms

2010-07-11 Thread Alexander Shishkin
On Sat, Jul 10, 2010 at 07:53:00 +0200, Denys Vlasenko wrote: On Thu, Jul 8, 2010 at 9:42 AM, Alexander Shishkin virtu...@slind.org wrote: On Thu, Jul 08, 2010 at 02:53:55 +0200, Denys Vlasenko wrote: On Tuesday 06 July 2010 13:48, Alexander Shishkin wrote: Hi, archival

Re: kill a file with ambiguous distribution terms

2010-07-08 Thread Alexander Shishkin
On Thu, Jul 08, 2010 at 02:53:55 +0200, Denys Vlasenko wrote: On Tuesday 06 July 2010 13:48, Alexander Shishkin wrote: Hi, archival/unzip_doc.txt.bz2 looks like a strange thing to have in a source tree and it seems that the distribution terms for it are unclear. Perhaps it might

kill a file with ambiguous distribution terms

2010-07-06 Thread Alexander Shishkin
Hi, archival/unzip_doc.txt.bz2 looks like a strange thing to have in a source tree and it seems that the distribution terms for it are unclear. Perhaps it might as well be removed? Regards, -- Alex ___ busybox mailing list busybox@busybox.net

[PATCH] [RFC] parse_date: support another date input format

2010-03-22 Thread Alexander Shishkin
.rodata42318 42330 +12 -- (add/remove: 0/0 grow/shrink: 2/0 up/down: 42/0) Total: 42 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org --- libbb

[PATCH] [RFC] parse_date: support another date input format

2010-03-22 Thread Alexander Shishkin
-off-by: Alexander Shishkin virtu...@slind.org --- libbb/time.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/libbb/time.c b/libbb/time.c index 45ae6f3..3a82644 100644 --- a/libbb/time.c +++ b/libbb/time.c @@ -46,6 +46,13 @@ void FAST_FUNC parse_datestr(const char

Re: [PATCH] [RFC] parse_date: support another date input format

2010-03-22 Thread Alexander Shishkin
On Man, Mar 22, 2010 at 06:25:49 +0100, Denys Vlasenko wrote: On Mon, Mar 22, 2010 at 3:09 PM, Alexander Shishkin virtu...@slind.org wrote: +               } else +               /* month_name d HH:MM:SS +                * this is supported by the GNU make */ perhaps GNU

Re: [PATCH 1/2] ar: add archive creation

2010-03-16 Thread Alexander Shishkin
On Mon, Mar 15, 2010 at 03:39:48 +0100, Denys Vlasenko wrote: +lib-$(CONFIG_FEATURE_AR_CREATE)        += ar_create.o why this is in the separate .c file? it can be in ar.c No reason. +#if ENABLE_FEATURE_AR_CREATE +       if (opt (AR_OPT_CREATE | AR_OPT_INSERT)) +               return

Re: [PATCH 2/2] Add a couple of basic ar tests.

2010-03-16 Thread Alexander Shishkin
On Mon, Mar 15, 2010 at 12:46:45 +0100, walter harms wrote: Did you take a look at the gnu ar tests ? Nope. Is it worth it? Regards, -- Alex ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: [PATCH 1/2] ar: add archive creation

2010-03-15 Thread Alexander Shishkin
Hi, Thanks for the comments, resending the updated patches. Another change is dealing with potentially overflowing uid/gid and size. Regargs, -- Alex ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

[PATCH 1/2] ar: add archive creation

2010-03-15 Thread Alexander Shishkin
) Total: 770 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org --- archival/Config.in|7 ++ archival/Kbuild |1 + archival/ar.c | 61 +++- archival/ar_create.c | 148

[PATCH 2/2] Add a couple of basic ar tests.

2010-03-15 Thread Alexander Shishkin
Signed-off-by: Alexander Shishkin virtu...@slind.org --- testsuite/ar.tests | 28 1 files changed, 28 insertions(+), 0 deletions(-) create mode 100755 testsuite/ar.tests diff --git a/testsuite/ar.tests b/testsuite/ar.tests new file mode 100755 index 000

[PATCH 2/2] Add a couple of basic ar tests.

2010-03-12 Thread Alexander Shishkin
Signed-off-by: Alexander Shishkin virtu...@slind.org --- testsuite/ar.tests | 28 1 files changed, 28 insertions(+), 0 deletions(-) create mode 100755 testsuite/ar.tests diff --git a/testsuite/ar.tests b/testsuite/ar.tests new file mode 100755 index 000

[PATCH 1/2] ar: add archive creation

2010-03-12 Thread Alexander Shishkin
) Total: 646 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org --- archival/Config.in|7 ++ archival/Kbuild |1 + archival/ar.c | 29 +- archival/ar.h | 23

[PATCH 2/2] Add a couple of basic ar tests.

2010-03-12 Thread Alexander Shishkin
Signed-off-by: Alexander Shishkin virtu...@slind.org --- testsuite/ar.tests | 28 1 files changed, 28 insertions(+), 0 deletions(-) create mode 100755 testsuite/ar.tests diff --git a/testsuite/ar.tests b/testsuite/ar.tests new file mode 100755 index 000

[PATCH 1/2] ar: add archive creation

2010-03-12 Thread Alexander Shishkin
) Total: 646 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org --- archival/Config.in|7 ++ archival/Kbuild |1 + archival/ar.c | 26 +- archival/ar.h | 27

ar c

2010-03-12 Thread Alexander Shishkin
Hi, Please disregard the previous one, it breaks compilation when AR_CREATE is not enabled. This is the fixed one. Also, this changes the license terms to v2 or later, fwiw. Regards, -- Alex ___ busybox mailing list busybox@busybox.net

rfc: remove opengroup's documentation

2009-11-03 Thread Alexander Shishkin
Hi, There's a tarball in busybox tree, shell/susv3_doc.tar.bz2 which is an offline copy of a document copyrighted by OpenGroup and as far as my understanding (IANAL) goes, is not really compatible with GPLv2. And it is also doubtful how useful is having this document in the source tree. Thus, I

Re: Funny code snippet of the month

2009-11-03 Thread Alexander Shishkin
On Втр, Ноя 03, 2009 at 04:28:09 +0100, Denys Vlasenko wrote: assert (*buffer == info-buffer); *buffer = info-buffer; Never say never. Regards, -- Alex ___ busybox mailing list busybox@busybox.net

[PATCH] pidof: use /proc/$PID/exe when nothing else works

2009-07-28 Thread Alexander Shishkin
Found myself in a need of better pidof than is currently available. This helps find tricky things (hald addons are closest examples) that can't be found otherwise. Signed-off-by: Alexander Shishkin virtu...@slind.org --- include/libbb.h |3 ++- libbb/find_pid_by_name.c |4

Re: [PATCH] halt: add option to call telinit when using external init

2009-07-27 Thread Alexander Shishkin
2009/7/27 Denys Vlasenko vda.li...@googlemail.com: On Sunday 26 July 2009 14:45, Alexander Shishkin wrote: 2009/7/26 Denys Vlasenko vda.li...@googlemail.com: On Saturday 25 July 2009 11:07, Alexander Shishkin wrote: Come to think of it, 9/10 of busybox functionality could be implemented

[PATCH] pidof: use /proc/$PID/exe when nothing else works

2009-07-27 Thread Alexander Shishkin
Found myself in a need of better pidof than is currently available. This helps find tricky things (hald addons are closest examples) that can't be found otherwise. Signed-off-by: Alexander Shishkin virtu...@slind.org --- include/libbb.h |3 ++- libbb/find_pid_by_name.c |4

Re: [PATCH] halt: add option to call telinit when using external init

2009-07-26 Thread Alexander Shishkin
2009/7/26 Denys Vlasenko vda.li...@googlemail.com: On Saturday 25 July 2009 11:07, Alexander Shishkin wrote: 2009/7/25 Denys Vlasenko vda.li...@googlemail.com: On Tuesday 21 July 2009 23:31, Alexander Shishkin wrote: In case our init is not a busybox applet, but an external program like

Re: [PATCH] fsync applet

2009-07-21 Thread Alexander Shishkin
2009/6/18 Denys Vlasenko vda.li...@googlemail.com: On Friday 12 June 2009 18:27, virtu...@slind.org wrote: From: Pekka Pessi pekka.pe...@nokia.com Issue fsync() system call on a file to ensure its buffers are synchronized with the backing storage. Signed-off-by: Alexander Shishkin virtu

Re: [PATCH] fsync applet

2009-07-21 Thread Alexander Shishkin
2009/7/21 Denys Vlasenko vda.li...@googlemail.com: On Tuesday 21 July 2009 19:35, Alexander Shishkin wrote: 2009/6/18 Denys Vlasenko vda.li...@googlemail.com: On Friday 12 June 2009 18:27, virtu...@slind.org wrote: From: Pekka Pessi pekka.pe...@nokia.com Issue fsync() system call

Re: [PATCH] fsync applet

2009-07-21 Thread Alexander Shishkin
2009/7/21 Denys Vlasenko vda.li...@googlemail.com: On Tuesday 21 July 2009 21:34, Alexander Shishkin wrote: Anyway, what does your git --version say? [Man, life is so much better when you use a binary distro] # git --version git version 1.6.2.4 Well, probably you misconfigured it while

[PATCH] halt: add option to call telinit when using external init

2009-07-21 Thread Alexander Shishkin
-- (add/remove: 0/1 grow/shrink: 2/0 up/down: 53/-3) Total: 50 bytes Signed-off-by: Alexander Shishkin virtu...@slind.org --- init/Config.in | 18 ++ init/halt.c| 17 ++--- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git

Re: [PATCH] fsync applet

2009-06-17 Thread Alexander Shishkin
2009/6/18 Rob Landley r...@landley.net: On Friday 12 June 2009 11:16:55 Alexander Shishkin wrote: 2009/6/12 Denys Vlasenko vda.li...@googlemail.com: On Thu, Jun 11, 2009 at 1:07 PM, virtu...@slind.org wrote: From: Pekka Pessi pekka.pe...@nokia.com Issue fsync() system call on a file

Re: [PACTH] fsync

2009-06-11 Thread Alexander Shishkin
2008/8/29 Pekka Pessi pekka.pe...@nokia.com: Hello, Here is fsync shell utility that makes life easier and faster on nosync (ubifs) mounts. This one has been unnoticed apparently. I'll resend the updated and rebased version of it in a flash. Regards, -- Alex

Re: [PATCH] fsync applet

2009-06-11 Thread Alexander Shishkin
2009/6/11 walter harms wha...@bfs.de: virtu...@slind.org schrieb: From: Pekka Pessi pekka.pe...@nokia.com Issue fsync() system call on a file to ensure its buffers are synchronized with the backing storage. According to the man page fsync is not in any standard, just to reduce the

Re: Fwd: [PATCH] chpasswd applet size reduction and bugfix

2007-07-21 Thread Alexander Shishkin
On 7/21/07, Denis Vlasenko [EMAIL PROTECTED] wrote: it fixes also a bug in commandline parsing: chpasswd must error out if -m and -e are set at the same time. Applied to svn (along with even more bugs fixed. It's scary how many of them were there). Alex, care to eyescan/test what in svn

[PATCH] add chpasswd applet

2007-07-19 Thread Alexander Shishkin
this information to update a group of existing users. Signed-off-by: Alexander Shishkin [EMAIL PROTECTED] --- include/applets.h |1 + include/libbb.h |3 + include/usage.h | 12 + libbb/Kbuild |3 +- libbb/update_passwd.c | 120

Re: [PATCH] add chpasswd applet

2007-07-19 Thread Alexander Shishkin
: */ +/* + * update_passwd + * + * update_passwd is a common function for passwd and chpasswd applets; + * it is responsible for updating password file (i.e. /etc/passwd or + * /etc/shadow) for a given user and password. + * + * Moved from loginutils/passwd.c by Alexander Shishkin [EMAIL PROTECTED

Fwd: [PATCH] add chpasswd applet

2007-07-19 Thread Alexander Shishkin
On 7/19/07, Paul Fox [EMAIL PROTECTED] wrote: 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. Well, given

Re: Fwd: [PATCH] add chpasswd applet -- use passwd instead

2007-07-19 Thread Alexander Shishkin
On 7/20/07, Tito [EMAIL PROTECTED] wrote: Hi, Hi, would something like passwd USER PASSWORD work for you? Unfortunately it won't, the reason being that the distro has two variants of core system (one busybox based and another -- coreutils based), and at least bootstrapping procedure relies on