Eric Andersen
d274b53c1d
last_patch59 from vodz to cleanup chmod and correctly parse '-rwxgoa'
2002-10-10 03:47:01 +00:00
Eric Andersen
02e6ba91e8
Vodz' last_patch57:
...
Hi, Erik.
my_getpw(uid/gid) and applets used it have problem:
if username for uid not found, applets can`t detect it
(but code pessent). Also "%8ld " format is bad:
spaces not required (applets have self format
or spec format (tar applet) and overflow for "id" applet...)
This problem also pressent in stable version.
Patch for unstable in attach.
--w
vodz
2002-09-30 20:39:56 +00:00
Glenn L McGrath
924f93e848
make_directory() will fail instantly so we dont need to test for failure here
2002-09-28 08:32:14 +00:00
Eric Andersen
60943c5d5c
Sane-ify the screen clearing stuff.
...
-Erik
2002-09-17 20:53:41 +00:00
Glenn L McGrath
18b76e6f80
Watch applet by Michael Habermann
2002-09-16 09:10:04 +00:00
Aaron Lehmann
5d3cb7cc1f
move some globals to bss
2002-08-23 07:28:45 +00:00
Glenn L McGrath
acfc0d872e
Run through indent, fix comments
2002-08-23 06:05:11 +00:00
Glenn L McGrath
03195fc16f
Run through indent, fix comments
2002-08-23 05:58:38 +00:00
Glenn L McGrath
a199b17253
Run through indent, specify cast
2002-08-23 03:37:07 +00:00
Glenn L McGrath
14dad7028b
Run through indent
2002-08-23 03:25:22 +00:00
Glenn L McGrath
e3906fcd94
Run through indent, fix BB_ define
2002-08-22 18:13:54 +00:00
Robert Griebl
6859d761d3
- updated a few copyright/left file headers
...
- documented most of my 0.61 changes in the ChangeLog
2002-08-05 02:57:12 +00:00
Robert Griebl
df03932b7e
Added the -I (isofmt) options to date, which comes in handy for scripts
...
(this is a confiureable option)
2002-07-30 23:11:00 +00:00
Robert Griebl
d378c3149c
Applied vodz' patches #49 and #50 (with a small correction in runshell.c)
...
#49 : I found one memory overflow and memory leak in "ln" applet.
Last patch reduced also 54 bytes. ;)
#50 : I found bug in loginutils/Makefile.in.
New patch have also new function to libbb and
aplied this to applets and other cosmetic changes.
2002-07-19 00:05:54 +00:00
Eric Andersen
2276d83639
Fixup warnings and undefined operations that show up in gcc-3.1
...
-Erik
2002-07-11 11:11:56 +00:00
Eric Andersen
887ca79f04
Scrub pwd.h and grp.h handling so we don't have to play any
...
silly games.
-Erik
2002-07-03 23:19:26 +00:00
Eric Andersen
009ae1f17d
Little fix to avoid overflow
2002-07-03 04:24:08 +00:00
Aaron Lehmann
69d4178708
Remove advertising clauses in accordance with
...
ftp://ftp.cs.berkeley.edu/ucb/4bsd/README.Impt.License.Change
2002-06-23 22:25:24 +00:00
Eric Andersen
b0fd2b06a3
Fix a potential macro expansion problem... isspace can be
...
a macro causing a double decrement...
2002-06-15 14:37:46 +00:00
Eric Andersen
a7d0b41c08
Don't use pointless GNU-isms
2002-06-15 14:33:06 +00:00
Eric Andersen
fc059090b6
last_patch41 from vodz to fix stty -F and similar
2002-06-06 11:35:29 +00:00
Manuel Novoa III
b99cb64b80
Include busybox.h before testing CONFIG_LOCALE_SUPPORT.
2002-05-29 19:08:41 +00:00
Robert Griebl
53146cc9ec
Added include for isdigit(); simplified -<num> detection
2002-05-27 22:24:53 +00:00
Robert Griebl
13c26fc1a5
SUpport old style -[::digit::] options for head and tail
...
Also make head behave like GNU head (-0/-n 0 is valid)
2002-05-17 22:18:04 +00:00
Tim Riker
95bf6da637
fix and shrink uuencode
2002-05-01 05:57:16 +00:00
Eric Andersen
d598d41110
Fix silly combinitorial oversight
2002-04-27 09:19:39 +00:00
Eric Andersen
ef38b39262
Support noerror option
2002-04-27 01:31:43 +00:00
Eric Andersen
00a6a75035
Add the who applet, supplied by Da Chen <dchen@ayrnetworks.com>
2002-04-26 23:53:10 +00:00
Eric Andersen
5f6873621d
ls could mis-color certain entries when previous commands
...
had failed. Explicitly 0 out errno to prevent that.
2002-04-17 20:21:45 +00:00
Eric Andersen
1d1d2f9b18
Update some missing copyright notices
2002-04-13 08:31:59 +00:00
Eric Andersen
265d229427
Patch from Edward Betts <edward@debian.org> to add -x switch to du.c
2002-04-06 23:16:44 +00:00
Eric Andersen
fcffa2cc1a
Apply lash_patch35 from vodz, which brings several nice size_optimizations.
2002-04-06 05:17:57 +00:00
Manuel Novoa III
fa15f702d2
Work around compiler/assembler problem and reduce code size at the same time.
2002-03-25 02:37:20 +00:00
Eric Andersen
27eff033d2
Eliminate extra trailing space
2002-03-20 16:10:54 +00:00
Eric Andersen
3ad0bd9563
Patch from J.W.Janssen <JanWillem.Janssen@lxtreme.nl> to provide
...
color ls support, modifed by me to behave properly when not running
output to a terminal (i.e. 'ls | more')
-Erik
2002-03-20 09:13:48 +00:00
Matt Kraai
a1bbde71bf
list_single: Declare scratch iff CONFIG_FEATURE_LS_USERNAME is defined.
2002-03-08 16:25:33 +00:00
Matt Kraai
3bd31ebc9a
* fileutils/ls.c (showfiles): Display multiple short names on a line.
2002-03-08 16:16:38 +00:00
Matt Kraai
eb83478528
* fileutils/dd.c (dd_main): Ignore ftruncate error if the output is not a
...
file or directory.
2002-02-05 15:28:54 +00:00
Matt Kraai
1f0c43668a
Remove == TRUE' tests and convert
!= TRUE' and `== FALSE' tests to use !.
2001-12-20 23:13:26 +00:00
Matt Kraai
38c15becf6
Avoid printing a trailing blank character.
2001-12-20 21:11:59 +00:00
Matt Kraai
ace02dc9cd
Make cp and mv optionally preserve hard links.
2001-12-17 15:26:36 +00:00
Matt Kraai
741f40b58e
Use an int to hold the result of fgetc (bug noted by David Kimdon).
2001-12-11 16:06:02 +00:00
Matt Kraai
dba11452cb
Continue processing files if we are asked to touch, but not create, a file
...
which doesn't exist.
2001-12-07 21:27:38 +00:00
Matt Kraai
3eeab3b23f
Update copyright and close file descriptors (noted by Axel Kittenberger).
2001-12-07 16:27:37 +00:00
Eric Andersen
c98c06233e
Merge in the cal applet from Steve Merrifield <steve@labyrinth.net.au>
2001-12-06 15:16:43 +00:00
Manuel Novoa III
6509f92a3b
Combined size reduction changes by Glenn and myself. Added back in "unknown"
...
for -p to match normal uname behavior (at a cost of 30-40 bytes).
2001-12-05 04:21:30 +00:00
Glenn L McGrath
9e6c9f7311
Minor space saving improvments
2001-11-21 12:46:36 +00:00
Glenn L McGrath
74afa9aed1
When just counting chars of a file stat file instead of reading the whole file (Fixes Debian bug #103302 )
2001-11-21 10:26:28 +00:00
Glenn L McGrath
c29ab97094
woops. dotn pass NULL
2001-11-21 10:01:29 +00:00
Glenn L McGrath
1477ad8e83
Simplify print function, prints an extra space if no filename, but saves 4 bytes
2001-11-21 09:58:29 +00:00
Glenn L McGrath
02d090d3d2
Use enums for selected functionality, Reduce the size by nearly 100 Bytes
2001-11-21 09:17:00 +00:00
Eric Andersen
26f8e95d2d
David Kimdon <dwhedon@instant802.com> noticed a thinko
...
in md5sum where only binary sums were verified. He also
sent in this patch,
-Erik
2001-11-17 04:16:15 +00:00
Glenn L McGrath
60281118d0
Introduce od and hexdump applets
2001-11-02 11:39:46 +00:00
Eric Andersen
eaecbf33f7
Fixup some silly prototype warnings
2001-10-31 10:41:31 +00:00
Matt Kraai
258bd3d971
Split true and false into separate applets.
2001-10-24 19:00:20 +00:00
Eric Andersen
1a10eec178
Fixup the location of pwd.h and grp.h
2001-10-24 17:19:38 +00:00
Eric Andersen
bdfd0d78bc
Major rework of the directory structure and the entire build system.
...
-Erik
2001-10-24 05:00:29 +00:00
Eric Andersen
74400ccfd0
Scrub up some function prototypes.
...
-Erik
2001-10-18 04:11:39 +00:00
Glenn L McGrath
1d098cefe2
Use wfopen instead of fopen & error_msg, saves 64 bytes
2001-10-05 05:24:19 +00:00
Matt Kraai
4c557bf576
Invert FILEUTILS_PRESERVE_SYMLINKS into FILEUTILS_DEREFERENCE.
2001-10-05 01:35:10 +00:00
Matt Kraai
1350666498
Add -p support.
2001-08-29 21:18:47 +00:00
Matt Kraai
5171bf6d40
SUSv2 specifies that if the extension is identical to the basename, it
...
should not be removed.
2001-08-29 20:19:29 +00:00
Eric Andersen
59443965ad
Scrub things and ditch uint64_t and use a custom type name
...
to avoid C lib compatibility problems.
2001-08-22 05:06:29 +00:00
Eric Andersen
c61804ed59
Fix dos2unix compile problem with certain glibc versions
2001-08-21 22:34:05 +00:00
Matt Kraai
d0b5be6da8
Remove BB_SH define entirely.
2001-08-09 21:00:15 +00:00
Matt Kraai
2338d3176b
Use ferror(3) to check for errors, rather than inspecting errno. Thanks to
...
David Douthitt for reporting, and shame on me for writing such crappy code.
2001-08-06 16:09:09 +00:00
Eric Andersen
0b7d70c822
Fix up some silly messups with the debian packaging, and a dumb
...
bug with chroot. I've had the package uploaded but perms set to
000, so I am going to re-tag things and re-cut the release. Folks
who pulled from CVS in the last 30 minutes with just have to cope.
-Erik
2001-08-02 20:56:16 +00:00
Eric Andersen
be0c36009a
More libc5 fixups
...
-Erik
2001-08-02 10:55:32 +00:00
Eric Andersen
3450636169
Latest patch from vodz. Adds a check for divide by zero in the posix
...
math suport, cleaner math syntax error checking, moves redundant signal
string tables (from kill and ash) into libbb and provides a few
cleanups elsewhere.
2001-08-02 05:02:46 +00:00
Eric Andersen
bb9579ffc3
Make formatting match GNU ls (we were including a spare ' ')
...
-Erik
2001-07-31 22:43:50 +00:00
Matt Kraai
73f6a1b058
Always write record counts to stderr.
2001-07-31 21:02:19 +00:00
Glenn L McGrath
b6071b6341
Fix permisions when reading from stdin
2001-07-29 06:04:26 +00:00
Glenn L McGrath
eba260587a
Fix broken logic when wraping encoded data into rows, also simplifies it a bit
2001-07-29 05:47:33 +00:00
Glenn L McGrath
4e664ac51d
The src buffer size has to be a multiple of 3 (as i noted, but didnt do).
2001-07-28 21:34:25 +00:00
Glenn L McGrath
089decab65
Rewrite based on wget uuencode function.
...
Saves aprox. 200 Bytes and in future can use common code between
this and wget if BB_FEATURE_WGET_AUTHENTICATION is defined.
2001-07-28 21:06:13 +00:00
Eric Andersen
655584b07a
This fixes dos2unix and unix2dos so they behave as expected. dos2unix
...
was broken in the 0.52 release, and unix2dos was pretty lame...
-Erik
2001-07-25 07:22:55 +00:00
Eric Andersen
8d79ce8320
Some patches to make dietlibc work...
2001-07-22 23:00:15 +00:00
Eric Andersen
20aab260e2
Some adjustments, mostly from David McCullough <davidm@lineo.com> to
...
make busybox be more uClinux friendly. I also adjusted Config.h for
uClinux so it will automagically disable apps the arn't going to
work without fork() and such.
-Erik
2001-07-19 22:28:02 +00:00
Eric Andersen
7467c8d3b6
Patch from vodz:
...
Changed email address
cmdedit API change
optimizations for traceroute and md5sum
added a new shared create_icmp_socket() function
2001-07-12 20:26:32 +00:00
Eric Andersen
55522080c6
Patch for md5sum from Aaron Lehmann <aaronl@vitelus.com> to slim
...
it down a little bit.
2001-07-10 16:31:29 +00:00
Eric Andersen
91b84603d3
Cleanup from vodz
2001-07-10 16:25:34 +00:00
Eric Andersen
5a4a46a251
Patch from vodz to support 'tr a-z A-Z' syntax.
2001-07-09 21:32:29 +00:00
Eric Andersen
22ecf049b6
Per patch from vodz, change a couple of consts to defines, since
...
apparently gcc 2.95.4, at least, is too stupid to realize that a
"static const int" is in fact a constant.
2001-07-02 17:32:40 +00:00
Eric Andersen
7e516797f9
Pad the human readable output for 'ls -sh' to 6 chars, since we will
...
have numbers printed as XXX.YU, so we need 6 digits not 4.
-Erik
2001-06-30 18:00:26 +00:00
Eric Andersen
8fa1bf7cd6
Fix a silly logic error which caused symlinks to be printed twice, and
...
wrongly caused the return code to be an error.
-Erik
2001-06-30 17:54:20 +00:00
Manuel Novoa III
8f01839386
Fixed scaling problems involving make_human_readable_str.
2001-06-30 07:48:01 +00:00
Manuel Novoa III
a77cfbfd0c
ls -s was reporting bytes instead of blocks.
2001-06-30 07:46:50 +00:00
Eric Andersen
db15cb72e2
A really nice patch from Manuel Novoa III for compile time
...
configurable size/speed tradeoffs.
2001-06-29 20:44:51 +00:00
Manuel Novoa III
a2949aa217
Add some missing includes to kill warnings when building with the default
...
Config.h and using gcc's -fno-builtin. There are probably other files
with the similar problems.
Also, if building against uClibc, don't include asm/unistd.h in syscalls.c
and module_syscalls.c.
2001-06-29 18:59:32 +00:00
Eric Andersen
ce98c19dfe
A patch from Erik Meusel <erik@wh58-709.st.uni-magdeburg.de>
...
to fix the behavior of 'tail -f -n 0 FILE'
2001-06-26 15:07:08 +00:00
Eric Andersen
24982c589b
Fix up some warnings that show up on ppc
2001-06-25 19:31:48 +00:00
Eric Andersen
e0c0757d09
These were broken when using dmalloc due to include file ordering
...
problems. busybox.h must be last.
-Erik
2001-06-23 13:49:14 +00:00
Matt Kraai
ceeff73819
Rewrote mkdir (and touched lots of things in the process).
2001-06-21 19:41:37 +00:00
Eric Andersen
f429baca86
I reworked make_human_readable_str so it now has a sane interface,
...
and then fixed up df, du, and ls to use the new interface. I also
fixed up some formatting issues in ls while I was in there.
-Erik
2001-06-13 08:02:45 +00:00
Eric Andersen
8b113f93b9
Vladimir's last_patch13, containing several bugfixes.
2001-06-01 21:47:15 +00:00
Mark Whitley
8b7a0d807a
Some more patchelttes from Larry Doolittle.
2001-05-24 21:31:09 +00:00
Eric Andersen
5a9d441b2c
Fix up some signed char vs int issues that show up on powerpc.
2001-05-24 14:16:28 +00:00
Eric Andersen
77d9268892
Patch from larry to fix some grammar errors.
2001-05-23 20:32:09 +00:00
Eric Andersen
004015e9c4
Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bug
...
#1130 (i.e. When you turn on features it should always ADD features)
2001-05-21 20:30:51 +00:00
Mark Whitley
b6967635eb
(Almost) brand-new version of cut that supports muitiple lists of positions,
...
per feature request from Tom Oehser.
2001-05-18 23:04:51 +00:00