aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-07-10I added dhcpd -6 option.Yeongdeok Suh
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 Hackmann
-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 Landley
the compiler was almost certainly retaining in a register anyway.
2015-07-10Promote hwclock.Rob Landley
2015-07-10Fix hwclock -w.Elliott Hughes
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 Pradhan
2015-07-08Fix ionice.Elliott Hughes
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 Landley
2015-07-06Save failure reason for each make change .bad file.Rob Landley
2015-07-05Kylie McClain pointed out that -z affects both input and output.Rob Landley
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 Landley
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 Landley
2015-07-03Promote xxd to other.Rob Landley
2015-07-03Probe for fork() instead of relying on a distro-specific #define.Rob Landley
2015-07-03Added i option to use other interface on running dhcpd.Hyejin Kim
2015-07-02Cleanup xxd.Rob Landley
2015-07-02Minor cleanups on xxd.Rob Landley
2015-07-02The android guys sent in xxd. It doesn't share code with od and hexdump. Hmmm...Rob Landley
2015-07-01Fix segfault with "mount -o ro,remount".Elliott Hughes
Or any call to comma_scan where 'opt' appears as the last item in 'optlist'.
2015-07-01Improve -Z error reporting.Elliott Hughes
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 Hughes
Broken by recent lib.h additions.
2015-06-29mkfifo -ZRob Landley
2015-06-28Add ionice and iorenice.Rob Landley
2015-06-27Add undo buffer for 'u'.Rob Landley
2015-06-27Simplify hexedit logic by adjusting viewport all in one place up top.Rob Landley
(Easier to genericize logic and reuse later in less or vi...)
2015-06-26Factor out more not-curses infrastructure into lib.Rob Landley
2015-06-25Suggestion from Elliott Hughes: tweak test infrastructure to notice ifRob Landley
command exits with high errno and assume it segfaulted.
2015-06-23Fix version number in ifconfig cleanup reference.Rob Landley
2015-06-23Don't segfault if none of the file arguments to ls exists.Rob Landley
2015-06-23Don't depend on malloc(0) to return non-null.Rob Landley
2015-06-23Fix ls so spacing is right for ls -l, -o, -g, -og, -ogZ, -lZ, -gZ, and -oZ.Rob Landley
2015-06-15Fluff up explanation of why 0BSD license for SPDX submission.Rob Landley
2015-06-15Use lsm_set_create() to set security blanket context before mknod, avoidingRob Landley
racy gap between create/label.
2015-06-11Add nproc.Rob Landley
2015-06-10Cosmetic tweak: no need for pages of text from "make defconfig" and friends.Rob Landley
2015-06-06Last grep commit broke non -r use of grep. Oops.Rob Landley
2015-06-02Make "printf --" and "printf ---" work.Rob Landley
2015-05-31Redo mkstatus.py to grep pending for pending data and trust toyboxRob Landley
defconfig output for ready command list, to reduce manual updating.
2015-05-31Move the magic list of commands needing cleanup from toys/pending/READMERob Landley
to greppable TODO annotations in the individual files. (grep -riw TODO)
2015-05-31On testing fold command, I found w option didnt check the range of value.Hyejin Kim
2015-05-31mknod: Add -Z optionJosé Bollo
Change-Id: I23174fb7b54d029784e6d7460368128113090079
2015-05-28Attempt to fix the mkdir LSM race.Rob Landley
Doing a world writeable mkdir and _then_ adding a label seems like a race window, so set the global "create stuff with these labels" context, then do the creates.
2015-05-21ls -lZ wasn't putting a space before the xattr output.Rob Landley
2015-05-21mkdir: Fix argument of option -ZJosé Bollo
2015-05-20Make "grep -r regex" work on implicit "." if no files specified.Rob Landley
2015-05-19Add -Z support to mkdir, based on a patch from Jose Bollo.Rob Landley
I have no idea why -Z isn't showing up in mkdir --help when enabled, I need to look at that...
2015-05-19Adapted patch from José Bollo to do the "tonight we're gonna api likeRob Landley
it's 1999 and every path ever is from cwd or root" api versions for sockets and as a fallback of the open fails. There are still some holes (symlink to socket with -L will give you info about the symlink, not the socket, and symlink to a file you can't open will give you info about the symlink, not the file) but the correct fix is to make O_PATH work in the kernel for the LSM functions. (If we can read this data by path, we should be able to read it by O_PATH. We should not need two codepaths for this.)
2015-05-18Switch id over to new infrastructure, switch id to use FORCE_FLAGS, andRob Landley
make lib/lsm.h auto-include from toys.h.
2015-05-18Fix "ls -Z . toys" segfaulting, because preprocessing skipped.Rob Landley
strwidth() got called on ->extra which was NULL. Had some other bad effects ala "ls -sk file1 file2 file3" ignored the -k. This should fix that too.
2015-05-18Recent commit broke ls -R (test reversed), and "ls -R singledir" shouldRob Landley
show label: at the start (yes, even "ls -R" in an empty dir).