aboutsummaryrefslogtreecommitdiff
path: root/util-linux (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Everything should be made as simple as possible. But no simpler.andersen2004-04-031-5/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8681 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Sigh. what a mess.andersen2004-03-301-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8672 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As waldi noticed, checks for the size of an off_t and castingandersen2004-03-301-13/+6
| | | | | | | etc was also redundant and possibly buggy... git-svn-id: svn://busybox.net/trunk/busybox@8671 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Go ahead and kill off the FDISK_SUPPORT_LARGE_DISKS option,andersen2004-03-301-8/+0
| | | | | | | as it is redundant.... git-svn-id: svn://busybox.net/trunk/busybox@8670 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The fdisk llseek junk was redundant, since both uClibc and glibcandersen2004-03-302-74/+8
| | | | | | | | automatically promote lseek and friends to their 64 bit counterparts when CONFIG_LFS is enabled, since it enables __USE_FILE_OFFSET64 git-svn-id: svn://busybox.net/trunk/busybox@8669 69ca8d6d-28ef-0310-b511-8ec308f3f277
* s/fileno\(stdin\)/STDIN_FILENO/gandersen2004-03-271-1/+1
| | | | | | | s/fileno\(stdout\)/STDOUT_FILENO/g git-svn-id: svn://busybox.net/trunk/busybox@8663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir N. Oleynik (vodz) writes:andersen2004-03-271-22/+21
| | | | | | | | | | | | | | | | | | Ok. Last patch reduce 73 bytes for compensate (and over) your changes ;-) Comments: Added cin_fileno variable, auto setted to 0 from BSS and have "eq" stdin descriptor if isatty(stout)==0, removed global variable FILE* cin. Removed default setting to terminal_width/terminal_height, this used only from main() and setted after call get_terminal_width_height() always correct. Variable please_display_more_prompt changed to bits logic, have size reducing. --w vodz git-svn-id: svn://busybox.net/trunk/busybox@8662 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Brian Pomerantz writes:andersen2004-03-231-1/+3
| | | | | | | | | | | | | | | | | | | I've noticed a bug in the "autowidth" feature more, and is probably in others. The call to the function get_terminal_width_height() passes in a file descriptor but that file descriptor is never used, instead the ioctl() is called with 0. In more_main() the call to get_terminal_width_height() passes 0 as the file descriptor instead of fileno(cin). This isn't a problem when you more a file (e.g. "more /etc/passwd") but when you pipe a file to it (e.g. "cat /etc/passwd | more") the size of the terminal cannot be determined because file descriptor 0 is not a terminal. The fix is simple, I've attached a patch for more.c and get_terminal_width_height.c. BAPper git-svn-id: svn://busybox.net/trunk/busybox@8656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some corrections from vodz:sandman2004-03-221-11/+6
| | | | | | | | - Make -u/-l mutually exclusive - Minor size reduction git-svn-id: svn://busybox.net/trunk/busybox@8655 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The utc variable was not modified according to the -u/-l command linesandman2004-03-211-2/+8
| | | | | | | parameters. git-svn-id: svn://busybox.net/trunk/busybox@8654 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-1516-71/+70
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Thomas Frohlich to fix an option ordering bug of mine.bug12004-03-101-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8611 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Chris Larson (kergoth), to allow multiple directores to bebug12004-02-221-7/+10
| | | | | | | unmounted at once. git-svn-id: svn://busybox.net/trunk/busybox@8546 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use bb_getopt_ulflags, marginal saving, better argument checking.bug12004-02-221-68/+41
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8542 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use /var/lib/hwclock for adjtime, its really a state file rather than abug12004-02-221-3/+1
| | | | | | | config file, so it should be in /etc, FHS mentions it also. git-svn-id: svn://busybox.net/trunk/busybox@8541 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate use of a kernel scsi header file.andersen2004-02-061-6/+5
| | | | | | | | Prevent potentially misaligned accesses while indexing a pointer to the partition table, which would be a bad thing on i.e. arm. git-svn-id: svn://busybox.net/trunk/busybox@8415 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup use of 'u_int' to instead use 'unsigned int'andersen2004-01-302-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8377 69ca8d6d-28ef-0310-b511-8ec308f3f277
* s/u_int/uint/gandersen2004-01-302-31/+31
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8376 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use proper C99 typesandersen2004-01-301-27/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8374 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito, reduce size, merge functions that are only used once.bug12004-01-201-93/+90
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8315 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stephane Billiart writes:andersen2004-01-181-1/+1
| | | | | | | | | | | | | bb_lookup_port now takes 3 parameters but rdate has not been modified accordingly and fails to compile in the current CVS version. The modification below fixes the problem. Now, RFC868 allows both UDP and TCP implementations of the time protocol so this may not work if someone defines a udp time service other than 37 but who would do that? git-svn-id: svn://busybox.net/trunk/busybox@8314 69ca8d6d-28ef-0310-b511-8ec308f3f277
* match changes made to cmdeditandersen2003-12-231-3/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8170 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change interface to bb_lookup_host, dont try and set port inside thisbug12003-12-201-1/+2
| | | | | | | | | | | function as there is no gracefull way of handling failures. Rename bb_getport to bb_lookup_port, allow a default port to be specified so it always returns a correct value. Modify ftpgetput/rdate/wget to use the new interface. wget/rdate now use etc/services with a falback default value. git-svn-id: svn://busybox.net/trunk/busybox@8140 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Fillod Stephane:andersen2003-12-191-2/+8
| | | | | | | | | | | * The "rdate.patch" file makes rdate to NOT settimeofday if the date to be set equals current date. This prevents the system from experiencing nasty time discontinuities caused by sub-second changes, with a protocol that has only over second resolution. Depending on your taste, the "fprintf(stderr..." may be removed. git-svn-id: svn://busybox.net/trunk/busybox@8127 69ca8d6d-28ef-0310-b511-8ec308f3f277
* vodz noticed we need to cast things back to an unsigned longandersen2003-12-191-2/+2
| | | | | | | or the syscall will not get the proper arguments. git-svn-id: svn://busybox.net/trunk/busybox@8120 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be certain we use a correct entity when performing theandersen2003-12-121-1/+1
| | | | | | | BLKGETSIZE64 ioctl -- don't just assume 8, git-svn-id: svn://busybox.net/trunk/busybox@8083 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Doh! I broke automatic filesystem type guessing. Fix mount soandersen2003-12-121-2/+3
| | | | | | | | | | it will properly fall back to /proc/mounts when /etc/filesystems is missing, allowing mount to guess the correct fs type when a fs type is not explicitly specified. -Erik git-svn-id: svn://busybox.net/trunk/busybox@8082 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix indenting.andersen2003-12-091-6/+5
| | | | | | | | Fix a bug noticed by Pete Flugstad. Make certain we close what we open, and don't try to close invalid files when /etc/filesystems exists and is used. git-svn-id: svn://busybox.net/trunk/busybox@8061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not use the _syscall5 macro -- use syscall(2) insteadandersen2003-12-041-11/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8047 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oskar Liljeblad writes:andersen2003-11-141-1/+1
| | | | | | | Here's a fix for the hard-coded device name in fbset. git-svn-id: svn://busybox.net/trunk/busybox@7906 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Marc Kleine-Budde noticed a missing semicolonandersen2003-11-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7900 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix rdate and ftpget/ftpput so they compile with the new xconnect.andersen2003-11-031-2/+2
| | | | | | | | I have checked rdate. Someone should also check ftpget/ftpput to be sure they still work. git-svn-id: svn://busybox.net/trunk/busybox@7765 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid conflicts with the 2.6 kernel headers, which defineandersen2003-11-031-0/+5
| | | | | | | | | _IOR rather differently, thereby breaking the BLKGETSIZE64 ioctl. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7756 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rework wget, the xconnect interface, and its various clientsandersen2003-10-311-4/+3
| | | | | | | | | | | | | | | | | in order to fix the problems with round robin DNS reported by Andrew Flegg: http://busybox.net/lists/busybox/2003-October/009579.html This removes the ipv6 specific xconnect dns lookups. I do not see why that would need to be special cased for ipv6 as was done, but that will just have to be tested. So IPV6 people -- please test this change! -Erik git-svn-id: svn://busybox.net/trunk/busybox@7735 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from David Meggy to make the swap default to the new version if nobug12003-10-311-5/+1
| | | | | | | version is specified and the kernel is relatively new. git-svn-id: svn://busybox.net/trunk/busybox@7731 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Andreas Mohr writes:andersen2003-10-221-23/+22
| | | | | | | | | | | | | | the busybox menuconfig triggered my "inacceptable number of spelling mistakes" upper level, so I decided to make a patch ;-) I also improved some wording to describe some things in a better way. Many thanks for an incredible piece of software! Andreas Mohr, random OSS developer git-svn-id: svn://busybox.net/trunk/busybox@7692 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Steven Scholz, fix some warningsbug12003-10-091-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7625 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)andersen2003-09-151-11/+6
| | | | | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7526 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix function prototypeandersen2003-09-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7525 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Needs prototype for close()andersen2003-09-151-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7524 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove final \nandersen2003-09-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7491 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Teach rdate to timeout in 10 seconds to avoid blocking foreverandersen2003-09-121-0/+10
| | | | | | | with odd or broken networking setups git-svn-id: svn://busybox.net/trunk/busybox@7482 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Logic error, patch by Matteo Crocebug12003-08-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7290 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed some debug printfssandman2003-08-261-4/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7264 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Kent Robotti to being fdisk in sync with v2.12 final.andersen2003-08-081-6/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7185 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz:andersen2003-08-062-10/+96
| | | | | | | | | | | | | | | | | | | | | I wrote: >>I think, fdisk have special ext2lseek special for: >>disk can have size > 4Gb, but all any partitions have < 4Gb and lseek64 >>not require. >>May be best create new configure option for set DOLFS for fdisk applet >>if global DOLFS unset? > Erik Andersen wrote: >Agreed. Using an extra configure option when ! DOLFS >would be a good idea. Ok. Patch attached. git-svn-id: svn://busybox.net/trunk/busybox@7174 69ca8d6d-28ef-0310-b511-8ec308f3f277
* extern inline is a bad bad thing. kill it (so mkfs_minix.c willandersen2003-08-061-11/+11
| | | | | | | actually compile) git-svn-id: svn://busybox.net/trunk/busybox@7167 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Lars Ekman writes:andersen2003-07-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | When using "losetup" the device is always setup as Read-Only. (I have only tested with the -o flag, but looking at the code the problem seems general) The problem is the "opt" variable in "losetup.c" that is reused in the "set_loop()" call. Clear it before the call and everything is OK; opt = 0; /* <-------- added line */ if (delete) return del_loop (argv[optind]) ? EXIT_SUCCESS : EXIT_FAILURE; else return set_loop (argv[optind], argv[optind + 1], offset, &opt) ? EXIT_FAILURE : EXIT_SUCCESS; } Best Regards, Lars Ekman git-svn-id: svn://busybox.net/trunk/busybox@7142 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch100 from vidz updating fdisk to 2.12preandersen2003-07-301-317/+330
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7140 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Ronny L Nilsson writes:andersen2003-07-301-1/+5
| | | | | | | | | If BusyBox was compiled with -DCONFIG_FEATURE_CLEAN_UP dmesg command segfaults if invoked with the "-n" option. (Due to a free() of an uninitialized pointer). git-svn-id: svn://busybox.net/trunk/busybox@7134 69ca8d6d-28ef-0310-b511-8ec308f3f277