Re: [PATCH] sha3sum: New applet, v4

2013-01-10 Thread Matthew Stoltenberg
This version works correctly on my PowerPC e500v2 based 32bit system. I only tested against the pre-computed values in http://en.wikipedia.org/wiki/Sha3. Thanks, baruch Ditto for mips64. Matt ___ busybox mailing list busybox@busybox.net

Re: [PATCH] sha3sum: New applet, v2

2013-01-08 Thread Matthew Stoltenberg
$ file ./busybox ./busybox: ELF 64-bit MSB executable, MIPS, MIPS64 rel2 version 1 (SYSV), statically linked, for GNU/Linux 2.6.9, stripped MSB executable means big-endian, isn't it? That's correct ___ busybox mailing list busybox@busybox.net

Re: [PATCH] sha3sum: New applet, v3

2013-01-08 Thread Matthew Stoltenberg
# echo -n The quick brown fox jumps over the lazy dog |./busybox sha3sum a753cd80313d095c37641af35cf24fa2ea1e4f94200fb82676c24faa5abdbe6e2626bfff79014a882fc7ad55319b3e6894dfc1f5f4672de365957ff428944355 - I see the same results on big endien mips64. Here's the blank output: # echo -n

Re: [PATCH] sha3sum: New applet, v2

2013-01-07 Thread Matthew Stoltenberg
On Fri, Jan 4, 2013 at 5:02 AM, Lauri Kasanen cur...@operamail.com wrote: v2: Hey Lauri, I've got a mips64 processor I'm trying your patch with... Here are the results I get using mips64 vs a basic centos5 x86_64 machine: # mips64 $ echo Hello World | ./busybox sha3sum

Re: Adding ipkg to Busybox?

2011-04-08 Thread Matthew Stoltenberg
Generally speaking, how can users tell which settings to enable/disable and the exact syntax, when neither ./configure --help nor README/INSTALL provide that information? Look at the configure script, then the Makefile(s) that it generates. Often times there is a variable you can set to

Re: [PATCH] busybox binary name

2011-03-06 Thread Matthew Stoltenberg
Since /proc is usually mounted, /proc/self/exe refers to the file which contains current binary. Hey Denys, Did you guys fix the install script where doing busybox --install -s was causing all the links to point to /proc/self/exe. I seem to recall a discussion on that, but don't recall if it

RFC: dterm applet

2010-11-05 Thread Matthew Stoltenberg
-1301, USA. * * busyboxified by Matthew Stoltenberg d3m...@gmail.com */ //applet:IF_MODINFO(APPLET(dterm, _BB_DIR_USR_BIN, _BB_SUID_DROP)) //kbuild:lib-$(CONFIG_DTERM) += dterm.o //config:config DTERM //config: bool dterm //config: default y //config: help //config: A simple terminal program

Re: OT: for(;;) vs while(1)

2010-10-31 Thread Matthew Stoltenberg
I still viscerally cringe when I see while (1) instead of for(;;).  I'm aware that modern optimizers take it out, but when there is a way to state exactly what you want the code to do and you choose to instead say something you _don't_ want the code to actually look like, I don't

Re: Keyed Hash?

2010-09-26 Thread Matthew Stoltenberg
My question was really about the purpose of this HMAC thing.  If you _can_ just prepend (or append) the password to the input data, what's HMAC for? Generally, HMAC is used as follows: C - client (has the hashed password as input by the luser) S - server (has the hashed password stored in a

Re: Build doesn't fail if od not installed

2010-09-17 Thread Matthew Stoltenberg
On Fri, Sep 17, 2010 at 1:55 PM, Vladimir Dronnikov dronni...@gmail.com wrote: I'd propose to consider mangling make script making BB coreutils as 0-step and then use them to build the target real BB. 0-step BB should be compiled w/o help messages and depend on the stuff truly expected to be

Re: Adding bash support to hush: the todo list.

2010-05-17 Thread Matthew Stoltenberg
We probably want some kind of config option for the alias, so bash and busybox can easily be installed side by side without interfering with each other. Rob I'm not the best at wording, but see the attached patch. Matt diff -ru busybox-1.16.1/include/applets.h

Re: Adding bash support to hush: the todo list.

2010-05-16 Thread Matthew Stoltenberg
On Sun, May 16, 2010 at 7:49 PM, Rob Landley r...@landley.net wrote: So Gentoo's portage requires bash (not just bash, but bash 3.x), and I'm trying to get it to work with busybox.  At least the following would need to be done to get hush to act as something like a bash replacement: 1) Allow

Re: [PATCH 06/39] win32: add missing system headers

2010-04-25 Thread Matthew Stoltenberg
So there really is no way to statically link the cygwin dll (looking at their list archives and FAQ: http://cygwin.com/faq/faq-nochunks.html#faq.programming.win32-no-cygwin)... Even so, it's not too hard to have a single dll copied with your busybox binary. On Sun, Apr 25, 2010 at 6:16 PM, Rob

Re: mkswap on 1k file

2010-02-01 Thread Matthew Stoltenberg
At least the kernel doesn't allow you to swapon it... Swap area shorter than signature indicates On Mon, Feb 1, 2010 at 10:47 AM, Mikhail Gusarov dotted...@dottedmag.net wrote: Hi. busybox 1.15.3 $ dd if=/dev/zero of=foo count=1 bs=1024 $ mkswap foo Setting up swapspace version 1, size =

Re: mkswap on 1k file

2010-02-01 Thread Matthew Stoltenberg
On Mon, Feb 1, 2010 at 10:47 AM, Mikhail Gusarov dotted...@dottedmag.net wrote: Hi. A: Because it messes up the order in which people normally read   text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? Yea, gmail starts you out at

make allyesconfig

2010-01-24 Thread Matthew Stoltenberg
Does anybody use this? It appears to broken (even forcibly turning off Werror) Here's my gcc... $ gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs

Re: make allyesconfig

2010-01-24 Thread Matthew Stoltenberg
On Sun, Jan 24, 2010 at 10:40 AM, walter harms wha...@bfs.de wrote: Matthew Stoltenberg schrieb: Does anybody use this? It appears to broken (even forcibly turning off Werror) please disable Build BusyBox as a static binary (no shared libs) when using glibc. default glibc can

Re: switch_root and centos

2009-12-31 Thread Matthew Stoltenberg
It'd be nice if busybox had a wiki people could edit... I'm not personally a fan of wikis, but I do notice that an earlier message I posted on this topic got appended to switch_root.c, which isn't the greatest place to put it.  Looks like we need a switch_root.txt in the docs Have you looked

Re: switch_root not work

2009-10-16 Thread Matthew Stoltenberg
2009/10/16 薛正华 zh...@cnic.cn: I put busybox into a initrd.img (ram disk). After linux kernel starts, it switches root file system to that of initrd.img, and it works well. Now, I want to switch root file system to NFS, and I used the following busybox command in the initrd enviroment. exec

Re: mke2fs

2009-09-24 Thread Matthew Stoltenberg
God, all this only to do a lseek+write? For comparison: fsck_minix.c does something like that with just one small function: static void write_block(unsigned nr, void *addr) very disgusting :D        uuid_generate(fs-super-s_uuid); ... and I dare not look into get_node_id()... it

Re: [PATCH] log PAM login errors into syslog, not console

2009-09-24 Thread Matthew Stoltenberg
On Thu, Sep 24, 2009 at 4:55 PM, Ian Wienand i...@vmware.com wrote: Hi, Users don't care about these messages, and it breaks the old security maxim of not telling an attacker why they weren't able to get in. Cool, thanks! +               syslog(LOG_WARNING, pam_%s call failed: %s (%d), Out

Re: [PATCH] log PAM login errors into syslog, not console

2009-09-24 Thread Matthew Stoltenberg
On Thu, Sep 24, 2009 at 6:51 PM, Denys Vlasenko vda.li...@googlemail.com wrote: Wow, someone does use PAM with busybox! Just got it setup a couple weeks ago in my 2.4 xscale environment I submitted that patch for the other day. It worked great for me (not a very complicated setup though). Matt

Re: [PATCH] ifenslave and 2.4 kernel

2009-09-24 Thread Matthew Stoltenberg
Argg, I want to hack gmail to automatically use reply-to-all when I respond to a mailing list... Does it work on 2.4? Yes. ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: mke2fs

2009-09-23 Thread Matthew Stoltenberg
Can I just uncomment this option and use it? Is it still officially supported? No, it is not supported. It needs serious debloating Has anyone done any initial work on that? I would be interested in making it happen... Matt ___ busybox mailing

BLKGETSIZE64 errors in MontaVista 4.0

2009-09-22 Thread Matthew Stoltenberg
I'm currently building 1.14.3 just fine with gcc-3.4.3 (pentium3 target).  However, when I tried updating to 1.15.1, I'm getting this error: miscutils/hdparm.c: In function `dev_size_mb': miscutils/hdparm.c:1355: error: `BLKGETSIZE64' undeclared (first use in this function) And:

Re: BLKGETSIZE64 errors in MontaVista 4.0

2009-09-22 Thread Matthew Stoltenberg
I just do not want platform.h to keep this kind of Linux-specific, special ioctl defines. It has a potential to clog it up. How about this: http://busybox.net/downloads/fixes-1.15.1/busybox-1.15.1-buildsys.patch Does this look ok to you? Thanks for the quick response. The patch fixes

[PATCH] ifenslave and 2.4 kernel

2009-09-22 Thread Matthew Stoltenberg
I've had this patch sitting around a couple of weeks. Got around to cleaning it up a bit and submitting it. The attached patch allows me to build the ifenslave applet in MontaVista CGE31 (xscale_be target) using gcc-3.3.1. I've also tested the modified applet quite a bit. Let me know if you

Re: can't switch_root inside initramfs

2009-08-31 Thread Matthew Stoltenberg
Before the bunzip2, try this: mount -t tmpfs -o none /mnt/target This is the right way, thanks, however exactly this command line doesn't work for me. I have to specify tmpfs a the source device and the -o none is a no go too, I don't have that option listed in mount --help. Btw, I'm

Re: applets wish: beep and sfdisk

2009-08-18 Thread Matthew Stoltenberg
and sfdisk is a very nice tool to create partitions from scripts. beats parted. agreed... sfdisk is nice for scripted installs... I would be willing to do a bit of testing for this. our fdisk should be massaged into an sfdisk. Would be handy IMHO, agreed. interessting would be a tools

[PATCH] applet volname

2009-08-12 Thread Matthew Stoltenberg
+ * + + * + */ + +/* + * mods from distrubuted source (eject-2.0.13) are by + * Matthew Stoltenberg d3m...@gmail.com + */ + +#include libbb.h + +int volname_main(int argc, char *argv[]) +{ + int fd; + int status; + char *device; + char buffer[33

Re: [PATCH] applet volname

2009-08-12 Thread Matthew Stoltenberg
On Wed, Aug 12, 2009 at 3:01 PM, Titofarmat...@tiscali.it wrote: Hi, i would suggest to make use of libbb functions to reduce size and to send the patch as attachment. Cool!  This is my first applet so I didn't know those existed :)  I can definitely see how that reduces code space usage. See

Re: [PATCH] applet volname

2009-08-12 Thread Matthew Stoltenberg
On Wed, Aug 12, 2009 at 6:00 PM, Denys Vlasenkovda.li...@googlemail.com wrote: On Wed, Aug 12, 2009 at 8:33 PM, Matthew Stoltenbergd3m...@gmail.com wrote: +int volname_main(int argc, char *argv[]) +{ +       int fd; +       int status; +       char *device; +       char buffer[33]; + +