summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-08-01Move strlower() from find to lib.Rob Landley3-35/+36
2015-08-01'!' replaces '/' in the sysfs paths of older drivers, so properlyIsaac Dunham1-16/+17
reverse that to get correct paths. While we're here, reduce the duplication of initialization. While this is enough for some drivers, it won't get 'input/' stuff in the right folder.
2015-07-31Whitespace.Rob Landley1-1/+1
2015-07-31Check in the note about rebuilding the source tarball.Rob Landley1-0/+7
2015-07-28fix build errorsubmit/tizen/20150728.023713accepted/tizen/wearable/20150728.070149accepted/tizen/tv/20150728.070226accepted/tizen/mobile/20150728.070208Hyejin Kim2-3/+1
Change-Id: I5fb2ed1dfcbea99fe761afc267c33a28ce4523f9 Signed-off-by: Yeongdeok Suh <yduck.suh@samsung.com>
2015-07-27sync spec filesubmit/tizen/20150727.113542Yeongdeok Suh14-150/+350
Change-Id: I7514d01cee8d9f9b0cd9382b3d9649ca30202265 Signed-off-by: Yeongdeok Suh <yduck.suh@samsung.com>
2015-07-24Promote fsync.Rob Landley1-3/+4
2015-07-24Promote hostid.Rob Landley1-1/+1
2015-07-24Attached are new toys.Sameer Pradhan3-0/+509
tftp - Client for tftp daemon. hostid -Print the numeric identifier for the current host. fsync -Synchronize a file's in-core state with storage device.
2015-07-20Release notes for 0.6.0.upstream/0.6.0Rob Landley1-23/+255
2015-07-20Fix llvm build break.Rob Landley1-1/+1
2015-07-20Merge branch 'upstream'Hyejin Kim209-3547/+6715
Change-Id: I17036143b5e644b1857e28b04d95fbd90fa2c112
2015-07-19Tweak version number.Rob Landley1-1/+1
2015-07-16Merge branch from toybox/masterHyejin Kim205-2917/+6675
Conflicts: both modified: lib/portability.c both modified: lib/portability.h both modified: scripts/genconfig.sh both modified: scripts/runtest.sh both added: tests/sed.test both modified: toys/other/acpi.c both modified: toys/other/ifconfig.c deleted by them: toys/other/unshare.c both added: toys/pending/hwclock.c both modified: toys/pending/ip.c deleted by them: toys/pending/sed.c both modified: toys/posix/chgrp.c both modified: toys/posix/cp.c both modified: toys/posix/id.c both modified: toys/posix/ls.c Change-Id: Ib36c5267ec054a5683ca37da2383d83b3cb1b5b4 Signed-off-by: Hyejin Kim <hyejin0906.kim@samsung.com>
2015-07-13Produce an error message for "cat /mnt", not just return code.Rob Landley1-1/+4
2015-07-12Commit rss feed.Rob Landley1-0/+1
2015-07-11Fix 32-bit bionic toybox build.Elliott Hughes1-2/+10
https://android-review.googlesource.com/159035/
2015-07-10Add a basename_r() and use it in names_to_pid() to avoid basename() overwritingRob Landley2-1/+10
itself on some inputs. (Which makes killall really impolite. Bug report from Nicholas Noury via Elliott Hughes.)
2015-07-10More explanation of TOYBOX_DEBUG for option string checking.Rob Landley1-0/+12
2015-07-10Move comment about TOYBOX_DEBUG to start of file so it's more obvious.Rob Landley1-4/+6
2015-07-10ifconfig MAC addresses should be lowercase.Elliott Hughes1-1/+1
A minor nit, but for some reason this really stands out every time I run ifconfig...
2015-07-10I added dhcpd -6 option.Yeongdeok Suh1-190/+1042
It's for supporting ipv6, and I referred to RFC 3315 Specification http://www.rfc-base.org/txt/rfc-3315.txt There are some different kind of requests in dhcpd6, but I inplemented only a basic protocol. (Solicit - Advertise - Request - Reply) There's a sample packet as below. toybox dhcpd works in the same way. http://packetlife.net/captures/DHCPv6.cap
2015-07-10find: add -inum optionGreg Hackmann1-0/+4
-inum is a commonly implemented extension to search by inode number. Linux's fs-layer tracepoints log many events in terms of inodes, so "find -inum" is useful for mapping those events back to specific files.
2015-07-10Rename a function to be more obvious, and factor out a repeated calculationRob Landley1-6/+8
the compiler was almost certainly retaining in a register anyway.
2015-07-10Promote hwclock.Rob Landley1-1/+1
2015-07-10Fix hwclock -w.Elliott Hughes1-10/+8
The gmtime_r/localtime_r error check was backwards, and the wrong argument was being passed to the RTC_SET_TIME ioctl. Also, the error reporting was misleading (showing errno for functions that don't set errno) and too vague for the user to tell what failed.
2015-07-09There is a typo in mkfifo.c for __Z__ option.Sameer Pradhan1-1/+1
2015-07-08Fix ionice.Elliott Hughes1-2/+4
ioprio_set takes a "prio" argument that combines class and level. Although bionic (via the uapi headers) includes the appropriate constants and even a convenience macro, glibc doesn't, so just hard-code the encoding. Also fix the sense of a conditional so we actually execute the provided command.
2015-07-06Avoid integer overflow with insane input data.Rob Landley1-1/+1
2015-07-06Save failure reason for each make change .bad file.Rob Landley1-2/+3
2015-07-05Kylie McClain pointed out that -z affects both input and output.Rob Landley1-3/+5
Can't say I'm happy with the API (-z and -Z to keep them independent would be nice), but compatibility with what exists trumps having a good API...
2015-07-04Actually set time with touch -d and -t when you don't specify nanonseconds.Rob Landley2-7/+15
There's a nanoseconds field value that says use current time, which I set but forgot to clear in the right places. (Oops.)
2015-07-03First pass on cp --preserveRob Landley1-33/+86
2015-07-03Promote xxd to other.Rob Landley1-1/+1
2015-07-03Probe for fork() instead of relying on a distro-specific #define.Rob Landley2-1/+20
2015-07-03Added i option to use other interface on running dhcpd.Hyejin Kim1-3/+5
2015-07-02Cleanup xxd.Rob Landley1-47/+30
2015-07-02Minor cleanups on xxd.Rob Landley1-25/+10
2015-07-02The android guys sent in xxd. It doesn't share code with od and hexdump. Hmmm...Rob Landley2-0/+125
2015-07-01Fix segfault with "mount -o ro,remount".Elliott Hughes2-1/+5
Or any call to comma_scan where 'opt' appears as the last item in 'optlist'.
2015-07-01Improve -Z error reporting.Elliott Hughes3-3/+3
The most likely reason for setfscreatecon to fail is that you don't have permission, and that's reported by the write return EACCES. There isn't really a "bad" context; they're just strings. Before: $ adb shell mkdir -Z x y mkdir: bad -Z 'x' After: $ adb shell mkdir -Z x y mkdir: -Z 'x' failed: Permission denied Other than this, the ToT mkdir works fine with SELinux.
2015-07-01Fix top.c build.Elliott Hughes1-9/+4
Broken by recent lib.h additions.
2015-06-29mkfifo -ZRob Landley1-2/+17
2015-06-28Add ionice and iorenice.Rob Landley1-0/+95
2015-06-27Add undo buffer for 'u'.Rob Landley1-8/+27
2015-06-27Simplify hexedit logic by adjusting viewport all in one place up top.Rob Landley1-60/+45
(Easier to genericize logic and reuse later in less or vi...)
2015-06-26Factor out more not-curses infrastructure into lib.Rob Landley3-68/+73
2015-06-25Suggestion from Elliott Hughes: tweak test infrastructure to notice ifRob Landley1-0/+4
command exits with high errno and assume it segfaulted.
2015-06-23Fix version number in ifconfig cleanup reference.Rob Landley1-1/+1
2015-06-23Don't segfault if none of the file arguments to ls exists.Rob Landley1-1/+2