Matt Kraai
5b44f48afc
Fix handling of '-' option and way that variables are added to the
...
environment from Jonas Holmberg <jonas.holmberg@axis.com>. Fix
handling of command options by adding + to getopt string.
2001-05-11 14:26:29 +00:00
Eric Andersen
de0ca0cd9e
Silence cut so it doesn't whine during compilation
2001-05-07 23:07:17 +00:00
Eric Andersen
04b0354d8e
Patch from Vladimir to use last_char_is to simplify du.c
2001-05-07 22:49:43 +00:00
Eric Andersen
8f3e51b4ad
Patch from Vladimir to remove testing stuff from stty
2001-05-07 22:47:45 +00:00
Matt Kraai
2e6c878763
Rewrite -c and -b processing to shrink code and eliminate buffer overrun.
2001-05-05 16:19:13 +00:00
Matt Kraai
6689140597
Remove summary header. Not present in GNU or SUSv2.
2001-05-03 04:45:40 +00:00
Mark Whitley
8a633268ef
Made new xreadlink function for libbb and changed applets to use it instead of
...
readlink(2).
2001-04-30 18:17:00 +00:00
Eric Andersen
65504ac12c
These do not need initial values. Let them live in the bss.
...
-Erik
2001-04-30 18:07:24 +00:00
Matt Kraai
6aabfd5e30
Fix handling of permission addition and removal (e.g., o-r).
2001-04-26 18:55:29 +00:00
Eric Andersen
ca85cdbe4c
Doh. I never allocated storate for the struct stat I am using.
...
There was just a never initialized pointer.
-Erik
2001-04-26 18:43:36 +00:00
Matt Kraai
468f504fd7
Fix handling of -R flag.
2001-04-26 18:27:47 +00:00
Eric Andersen
c1bdffe99b
Another nice cleanup from Larry. This adds a new last_char_is() function and
...
uses it to avoid possible buffer underruns whn strlen is zero, and avoid the
possible space-hogging inline of strlen() in several cases.
-Erik
2001-04-26 15:56:47 +00:00
Eric Andersen
3c3277f0bd
As Larry pointed out, this the off by one canbe fixed much more elegantly.
2001-04-26 15:41:51 +00:00
Eric Andersen
30592a5451
Fix a silly off-by-one error noticed by Santiago Garcia Mantinan <manty@debian.org>
...
-Erik
2001-04-26 14:56:45 +00:00
Mark Whitley
207587a9b4
Applied patch from I.Q. to add -s to cmp.
2001-04-25 20:41:02 +00:00
Eric Andersen
c57a75d896
Larry noticed that chown and chgrp has the version numbers off a bit
...
for glibc's lchown support. Thanks Larry.
2001-04-25 17:12:33 +00:00
Eric Andersen
04095e58fb
Move messages.c to libbb. Make each string in messages.c be its own .o file.
...
This way, we can new get rid of all that tedious #define rubbish we used to
need to enable specific messages. This way is enormously simpler, and as a
bonus also ends up saving us 96 bytes.
-Erik
2001-04-25 05:39:18 +00:00
Matt Kraai
8810bdbba3
Rewrote rm.
2001-04-24 20:04:18 +00:00
Eric Andersen
9f0fedb8f6
Split up chmod_chown_chgrp.c into 3 separate apps. This unfortunately
...
adds 384 bytes to the overall size. But having each app be standalone
is the Right Thing(tm) so we will just have to live with it.
-Erik
2001-04-24 18:07:19 +00:00
Matt Kraai
01441036e9
Use generic flag names.
2001-04-24 01:30:02 +00:00
Matt Kraai
91b2855ba8
Rewrite cp and mv to be SUSv2 compliant.
2001-04-23 18:53:07 +00:00
Matt Kraai
782ab3ccf8
Simplify pathname building, in which a bug was noted by Larry Doolittle,
...
a patch was provided by Vladimir Oleynik, and am improved patch commited
by me.
2001-04-23 01:07:00 +00:00
Matt Kraai
3ce79338e6
Fix buffer underrun noted and solved by Larry Doolittle.
2001-04-19 14:56:23 +00:00
Mark Whitley
fccaa3629b
Applied patch from I.Q. to add sort -u as a feature.
2001-04-17 18:56:18 +00:00
Mark Whitley
6e808ca354
Changed line[strlen(line) - 1] = '\0'; to chomp(line);
2001-04-17 18:26:11 +00:00
Mark Whitley
3828dbed57
Applied patch from I.Q. to fix problem with sort -n.
2001-04-17 17:47:33 +00:00
Eric Andersen
4a2e463525
Handle endian-ness. Patch from Paul J.Y. Lahaie <pjlahaie@linuxcare.com>
...
-Erik
2001-04-14 03:33:33 +00:00
Matt Kraai
1e04ea388f
Fix dos2unix/tr problem noted by Larry Doolittle.
2001-04-12 21:38:06 +00:00
Glenn L McGrath
a6ce670a87
use tmpfile() and revert my previous changes... convert() belongs here
2001-04-12 02:26:04 +00:00
Glenn L McGrath
50b787cac5
Move convert to libbb
2001-04-12 00:52:29 +00:00
Glenn L McGrath
ed897e5415
Vladimir's patch to reverse previous patch
2001-04-11 17:20:44 +00:00
Eric Andersen
e5dfced23a
Apply Vladimir's latest cleanup patch.
...
-Erik
2001-04-09 22:48:12 +00:00
Eric Andersen
250a221768
more FILE_OFFSET_BITS == 64 adjustments.
2001-04-05 23:26:44 +00:00
Eric Andersen
e76c3b08e1
A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
...
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can
handle them sanely and all at once.
-Erik
2001-04-05 03:14:39 +00:00
Eric Andersen
91c9388715
Place a temporary bandaid on the ls/du/df human-readable issue. This method is
...
not going to scale up as well as I would like, and Matt Kraai and I have
discussed a better long term solution. But for now this will at least make all
the human-readable apps give correct answers.
Please test the human readable/non-human readable options on your systems!!!
-Erik
2001-04-03 23:14:29 +00:00
Eric Andersen
84e229cfbe
Add in a new standalone env applet for fixing up app's environments
...
-Erik
2001-03-29 22:48:33 +00:00
Eric Andersen
c835567914
Fix ls so it uses make_human_readable_str() the same way already
...
used by 'du' and 'df'. Now we just need to fix make_human_readable_str
so it behaves they way it used to before Matt fixed it.
2001-03-28 20:26:51 +00:00
Mark Whitley
9a2144663a
Applied patch from David Douthitt to fix problem where ls reports half the
...
file size. Should close bug #1140 .
2001-03-27 20:59:14 +00:00
Eric Andersen
f6aa13d403
-Wshadow tr fix from Jeff Garzik
2001-03-23 17:08:21 +00:00
Eric Andersen
1ca20a7747
A nice patch from Larry Doolittle that adds -Wshadow and
...
cleans up most of the now-revealed problems.
2001-03-21 07:34:27 +00:00
Eric Andersen
92d23245c9
Another cleanup patch from Jeff Garzik <jgarzik@mandrakesoft.com>
2001-03-19 23:49:41 +00:00
Eric Andersen
8269396491
Simpify detection of no options.
2001-03-19 19:40:43 +00:00
Eric Andersen
7ef54de672
locale correction patch from Vladimir
2001-03-19 19:25:49 +00:00
Eric Andersen
cc165b9083
Should exclude "i" option when not enabled.
2001-03-19 18:59:01 +00:00
Eric Andersen
00b0496e69
Doesn't need a "-" option -- getopt does that for us.
2001-03-19 18:57:08 +00:00
Eric Andersen
16f7015722
Patch from Vladimir to force interactiveFlag=FALSE when forceFlag=TRUE
2001-03-19 18:54:38 +00:00
Eric Andersen
7c25441792
getopt-ify rm so that BB_FEATURE_RM_INTERACTIVE will work
2001-03-19 18:52:37 +00:00
Mark Whitley
f6ba2da29f
Credited Christophe Boyaniqu for interactive patch to rm.
2001-03-13 16:35:55 +00:00
Mark Whitley
e0bf91d7c6
Applied patch from Christophe Boyanique to add -i support to rm.
2001-03-13 00:40:19 +00:00
Mark Whitley
09f4af5afd
/* getopt not needed */
2001-03-10 00:13:20 +00:00