defa4f93c2
Per suggestion by Matt, make sh.c a real target. There is no need for the useless sh_link dummy target -- use the real thing. -Erik
Eric Andersen
2001-04-30 17:52:36 +00:00
218aa370b4
Fix user permissions of copied directories.
Matt Kraai
2001-04-30 17:32:43 +00:00
43ca13714b
Simplify permission handling for FIFOs.
Matt Kraai
2001-04-30 16:43:21 +00:00
24abecc349
Fix exit status when there is an error copying a file.
Matt Kraai
2001-04-30 16:37:04 +00:00
af166e7ce0
Logic reversal for last_char_is
Glenn L McGrath
2001-04-29 00:50:33 +00:00
2bf4dad7ec
fix to applet_source_list rule so Debian package continues to build
David Kimdon
2001-04-28 16:37:23 +00:00
07e462fd6d
Matt was complaining. Hopefully this helps the sh.c link situation
Eric Andersen
2001-04-27 18:36:43 +00:00
72ab975a6b
Terminate source correctly when copying symlink. Report and patch by Brian Webb <webbb@desertscenes.net>.
Matt Kraai
2001-04-27 15:40:27 +00:00
088875fec4
Use BUFSIZ for the_command to match size used in cmdedit
Eric Andersen
2001-04-27 07:49:41 +00:00
af44a0e8f4
An update to hush from Larry: It should recover more smoothly from syntax errors, and it now has a decent guess when the reserved word construct is over (or not) to control execution and prompting. I took out all the redundant standalone test copies of libbb routines, but left in a hook so I can include those for my testing. I'll post that include file on my web site.
Eric Andersen
2001-04-27 07:26:12 +00:00
0081466925
Be a bit more sneaky about the sh.c symlink so you don't need to do a mke clean for it to happen. -Erik
Eric Andersen
2001-04-26 23:29:10 +00:00
0f9426edb0
Ignore some generated files
Eric Andersen
2001-04-26 23:23:04 +00:00
25f2703015
This is the initial checkin of Larry Doolittle's hush.c, using his April 25, 2001 snapshot, adjusted a bit by me so it has cmdedit support.
Eric Andersen
2001-04-26 23:22:31 +00:00
a1dbc22469
Disable lash -Erik
Eric Andersen
2001-04-26 23:10:22 +00:00
924ab5b7d3
These days busybox.pod is autogenerated, so it should be removed from CVS.
Eric Andersen
2001-04-26 23:06:39 +00:00
7f3b86e7bf
A fix from Larry for a corner case where insmod could end up doing an xrealloc(0).
Eric Andersen
2001-04-26 19:29:58 +00:00
6aabfd5e30
Fix handling of permission addition and removal (e.g., o-r).
Matt Kraai
2001-04-26 18:55:29 +00:00
ca85cdbe4c
Doh. I never allocated storate for the struct stat I am using. There was just a never initialized pointer. -Erik
Eric Andersen
2001-04-26 18:43:36 +00:00
468f504fd7
Fix handling of -R flag.
Matt Kraai
2001-04-26 18:27:47 +00:00
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
Eric Andersen
2001-04-26 15:56:47 +00:00
3c3277f0bd
As Larry pointed out, this the off by one canbe fixed much more elegantly.
Eric Andersen
2001-04-26 15:41:51 +00:00
30592a5451
Fix a silly off-by-one error noticed by Santiago Garcia Mantinan <manty@debian.org> -Erik
Eric Andersen
2001-04-26 14:56:45 +00:00
e55987896a
Applied patch from Larry Doolittle to fix pristine build breakage.
Mark Whitley
2001-04-25 23:49:43 +00:00
2789906aad
Removed obsoleted BB_FEATURE_RM_INTERACTIVE
Mark Whitley
2001-04-25 22:08:56 +00:00
207587a9b4
Applied patch from I.Q. to add -s to cmp.
Mark Whitley
2001-04-25 20:41:02 +00:00
c29c44c00e
libbb.h now includes ../busybox.h. This way, files in libbb that have BB_[FEATURE] #defines won't be ignored. Credit to Magnus Damm for spotting this.
Mark Whitley
2001-04-25 18:06:21 +00:00
4f4bcfcd1a
Some more cleanups for insmod from Larry. -Erik
Eric Andersen
2001-04-25 17:22:32 +00:00
c57a75d896
Larry noticed that chown and chgrp has the version numbers off a bit for glibc's lchown support. Thanks Larry.
Eric Andersen
2001-04-25 17:12:33 +00:00
4b541a8817
Moved some #ifdefs down below #include "busybox.h" where they belong.
Mark Whitley
2001-04-25 17:10:30 +00:00
67d7fe66e7
Sync'ed up the olympus section between this and stock Config.h
Mark Whitley
2001-04-25 17:05:51 +00:00
4f3558af17
Fixed a BB_MTAB #define buglet reported by Magnus Damm.
Mark Whitley
2001-04-25 17:03:40 +00:00
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
Eric Andersen
2001-04-25 05:39:18 +00:00
3676374915
Cleanup more carefully after pod2html
Eric Andersen
2001-04-24 21:46:07 +00:00
f227815c3a
Several cleanups from Larry.
Eric Andersen
2001-04-24 21:41:41 +00:00
8810bdbba3
Rewrote rm.
Matt Kraai
2001-04-24 20:04:18 +00:00
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
Eric Andersen
2001-04-24 18:07:19 +00:00
3a4aef5a4c
Update applet define from BB_CP_MV to BB_CP and BB_MV.
Matt Kraai
2001-04-24 15:19:04 +00:00
01441036e9
Use generic flag names.
Matt Kraai
2001-04-24 01:30:02 +00:00
9ff9325e60
Move applet_name declaration from busybox.h to libbb.h.
Matt Kraai
2001-04-24 01:12:33 +00:00
af030496fa
Applied patch from Larry Doolittle to remove some strlen calls, and add one paranoia check to avoid buffer underrun. Saves 120 text bytes.
Mark Whitley
2001-04-23 23:16:20 +00:00
de1b262942
Remove file obsoleted by cp/mv rewrite.
Matt Kraai
2001-04-23 19:48:26 +00:00
91b2855ba8
Rewrite cp and mv to be SUSv2 compliant.
Matt Kraai
2001-04-23 18:53:07 +00:00
4e9267d76c
Reversed last patch; unnecessary.
Mark Whitley
2001-04-23 17:56:27 +00:00
4b66dabc76
Added a sanity check to fix weird bug exposed when sourcing in commands from a file with lash. Based on report from Heinz Walter.
Mark Whitley
2001-04-23 17:04:41 +00:00
8a24a65d2f
Change link order so that libbb functions use libpwd.a when appropriate.
Matt Kraai
2001-04-23 16:11:57 +00:00
ed424dbf1d
Some patches from Gennady Feldman. Fixed a glob problem such that 'ls *.h Config.h' works. Fixed a silly typo with fg/bg process control. Made cmdedit exit sanely when it cannot read input.
Eric Andersen
2001-04-23 15:28:28 +00:00
d8862928c2
A patch from Marc Karasek and Kanoj (kernel serial.c maintainer) so init will work on serial consoles with 2.4.3+ kernels, thanks to Fabrice Gautier <gautier@email.enst.fr> for finding this one. -Erik
Eric Andersen
2001-04-23 15:14:11 +00:00
f5c358bc98
Simplify file_prefix handling, and use of *dir variable.
Glenn L McGrath
2001-04-23 13:52:02 +00:00
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.
Matt Kraai
2001-04-23 01:07:00 +00:00
ee0d93ed04
Fix horrible, horrible memmory leak. I wondered why processes were dying !
Glenn L McGrath
2001-04-21 10:26:15 +00:00
89dc02d944
Clearly define out exclude list code, as recommended by Larry Doolittle
Glenn L McGrath
2001-04-21 02:12:13 +00:00
56c14a6473
Fixed a buglet where an extra newline was being added after an insert command in some cases.
Mark Whitley
2001-04-20 23:41:44 +00:00
497ef46587
Made a correction to a bad test expression. Props to Larry Doolittle for spotting this one.
Mark Whitley
2001-04-20 23:27:17 +00:00
3e310ac309
Applied patch from Larry Doolittle to give users the third option of putting buffers in BSS (in addition to stack and heap).
Mark Whitley
2001-04-20 17:40:33 +00:00
6ebd633829
Set permissions of created file
Glenn L McGrath
2001-04-20 05:16:38 +00:00
46cd74b9e3
This has two patches. First it moves interface.c to libbb (it is support code after all). It also contains a patch from Larry Doolittle that removes two instances of "strlen([^)]*) *- *1", un-shadows two variables, relaxes requirement for a sprintf(3) that returns number of bytes written, and eliminates a duplicate subroutine.
Eric Andersen
2001-04-19 16:55:27 +00:00
3ce79338e6
Fix buffer underrun noted and solved by Larry Doolittle.
Matt Kraai
2001-04-19 14:56:23 +00:00
0a3bda2c53
Move real_loop.h to libbb, where it belongs. -Erik
Eric Andersen
2001-04-18 22:23:22 +00:00
b5ec61e4f5
Add types for the inline funcs, thanks to Ralph Siemsen <ralphs@netwinder.org>
Eric Andersen
2001-04-18 20:17:05 +00:00
53265546a6
Eliminate spurious warning, convert to getopt, and eliminate redundant check.
Matt Kraai
2001-04-18 16:05:34 +00:00
96dcd19b8a
Fix a number of problems with argument handling.
Matt Kraai
2001-04-18 15:54:09 +00:00
54652230d4
Eliminate a segfault when called on an existing file with out an extension: touch foo && gunzip foo
Matt Kraai
2001-04-18 15:51:45 +00:00
b181056e06
Eliminated seeks so that we work correctly on pipes, and removed reliance on undefined evaluation ordering. Thanks to Anthony Towns for explanation and solution.
Matt Kraai
2001-04-18 14:49:55 +00:00
bcfeb2ac44
Fix zcat/gunzip when reading from stdin
Glenn L McGrath
2001-04-18 13:34:09 +00:00
2771d1a574
- updated busybox_header.pod by adding adjtimex to the list. - a new busybox.pod that reflects my fixes, and todays patches to usage.h
John Beppu
2001-04-17 23:57:23 +00:00
fccaa3629b
Applied patch from I.Q. to add sort -u as a feature.
Mark Whitley
2001-04-17 18:56:18 +00:00
6e808ca354
Changed line[strlen(line) - 1] = '\0'; to chomp(line);
Mark Whitley
2001-04-17 18:26:11 +00:00
30ac01cca7
Applied a patch from Laurence Anderson to fix the wget statusbar and a patch to usage.h to document the -q option.
Mark Whitley
2001-04-17 18:13:16 +00:00
3828dbed57
Applied patch from I.Q. to fix problem with sort -n.
Mark Whitley
2001-04-17 17:47:33 +00:00
31868b85be
Added some help messages.
Mark Whitley
2001-04-17 17:37:47 +00:00
59a86cad67
The tiniest of bracket-placement fixes.
Mark Whitley
2001-04-17 17:30:44 +00:00
5d81768cf1
- usage.h o echo_example_usage needed to escape some backslashes in an inner quote o find_full_usage missing a \n at the end of the -name line ? getopt_full_usage the -o line has tab issues, but I didn't fix them. o length_example_usage removed some double-quotes that were within an inner quotes o printf_example_usage needed to escape a backslash in an inner quote o sort_example_usage needed to escape some backslashes and double quotes in an inner quote o tftp_full_usage s/nameing/naming/; o umount_full_usage remove colons after options for consistency w/ other full_usage messages o uniq_example_usage needed to escape some backslashes and double quotes in an inner quote
John Beppu
2001-04-17 17:09:34 +00:00
a3045dfd25
Convert mount to use getopt.
Matt Kraai
2001-04-17 04:48:51 +00:00
1240082e37
Further cleanup of mount option handling.
Matt Kraai
2001-04-17 04:32:50 +00:00
24ed3bee0c
Fix -a support (broken by previous patch).
Matt Kraai
2001-04-17 04:26:05 +00:00
3d406da0c9
Fix segfault on `mount -t nfs' reported by Gratien D'haese.
Matt Kraai
2001-04-17 04:22:22 +00:00
1c0d311ff4
Several fixes from Sterling Huxley for the vi applet.
Eric Andersen
2001-04-16 15:46:44 +00:00
ae1c704c44
Write full status file
Glenn L McGrath
2001-04-16 10:26:46 +00:00
33431ebb9a
dpkg improvements, use full package struct, avoid extracting to tmp dir, rename variable. deb_extract, untar and dpkg_deb modified to make the above possible
Glenn L McGrath
2001-04-16 04:52:19 +00:00
3136904ff6
Document new dpkg-deb funtions
Glenn L McGrath
2001-04-15 12:53:24 +00:00
685f5fd6f4
untar changed to allow deb_extract to extract to memory, allows better operation of dpkg-deb -f
Glenn L McGrath
2001-04-15 12:51:59 +00:00
a529d885d2
NEw functions read_package_field and read_text_file_to_buffer
Glenn L McGrath
2001-04-15 12:50:15 +00:00
5faef74bae
Reads a field from a debian control (status or available) file, handles multi-line fields.
Glenn L McGrath
2001-04-15 12:38:12 +00:00
65708e4cd1
Read a FILE* till an empty line or eof and return it as a char buffer. In future maybe add char *end_str to interface to allow calling function to specify end point.
Glenn L McGrath
2001-04-15 12:36:19 +00:00
4a2e463525
Handle endian-ness. Patch from Paul J.Y. Lahaie <pjlahaie@linuxcare.com> -Erik
Eric Andersen
2001-04-14 03:33:33 +00:00
0f50bca9aa
Fix infinite loop and reallocate if too many modules.
Matt Kraai
2001-04-13 14:40:15 +00:00
445fb952b8
dpkg-deb -f and partial -I commands, adds 600 bytes
Glenn L McGrath
2001-04-13 04:02:57 +00:00
1e04ea388f
Fix dos2unix/tr problem noted by Larry Doolittle.
Matt Kraai
2001-04-12 21:38:06 +00:00
d6cde0bcf4
Fix return code and don't output spurious newlines.
Matt Kraai
2001-04-12 20:51:01 +00:00
8fc364ebd5
Fix comment.
Matt Kraai
2001-04-12 20:12:16 +00:00
6ba1a80c26
Use date -u instead of date --utc and consolidate version string. Patch by Larry Doolittle <ldoolitt@recycle.lbl.gov>.
Matt Kraai
2001-04-12 20:11:55 +00:00
5a65413c04
Updates, fixes for handling contents, verbose extract. More updates to come
Glenn L McGrath
2001-04-12 16:40:21 +00:00
47fd219c95
Rename variable that shadows global
Glenn L McGrath
2001-04-12 16:37:13 +00:00
be66ad3212
Fix handling of '' and "".
Matt Kraai
2001-04-12 15:42:17 +00:00
3e2ab88ee2
New dpkg-deb function -t, stands for --fsys-tarfile
Glenn L McGrath
2001-04-12 13:49:09 +00:00
c9cac5be23
Change size to unsinged long long, so if -1 is passed it will read as much as possible.
Glenn L McGrath
2001-04-12 13:47:12 +00:00
6785b51280
dpkg-deb -c works now
Glenn L McGrath
2001-04-12 11:48:02 +00:00
359c106871
Fix dpkg-deb, enum's are cool
Glenn L McGrath
2001-04-12 10:19:08 +00:00