Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-01-01 | Switch a lot of strncpy() calls to xstrncpy(). | Rob Landley | |
2015-01-01 | strncpy(optptr, hname, strlen(hname)) is really just strcpy(). | Rob Landley | |
2015-01-01 | typo fixes | Elliott Hughes | |
2014-12-31 | Redo option parsing infrastructure so #define FORCE_FLAGS can unzero flag ↵ | Rob Landley | |
macros for a disabled command (needed when multiple commands share infrastructure with a common set of flags). This means the flag space is no longer packed, but leaves gaps where the zeroes go. (Actual flag bit positions are the same for all configs.) Since the option parsing needs to know where the holes are, the OPTSTR values are now generated as part of flags.h with ascii 1 values for the disabled values. (So generated/oldflags.h went away.) This also means that the option string argument for OLDTOY() went away, it now uses the same arguments as the NEWTOY() it references. | |||
2014-12-28 | Fluff out help text. | Rob Landley | |
2014-12-27 | Promote mix | Rob Landley | |
2014-12-27 | Cleanup mix.c. | Rob Landley | |
2014-12-23 | getenforce and setenforce | Elliott Hughes | |
two more easy SELinux commands: | |||
2014-12-21 | Promote sed to posix. | Rob Landley | |
2014-12-20 | sed: implement 'l' | Rob Landley | |
2014-12-19 | More sed bugs. | Rob Landley | |
1) Newline in -e after s/// was eaten as "whitespace before flags" 2) \\ needs to be passed through to regex to avoid "trailing \" error and "\\n" is not a newline. | |||
2014-12-15 | Fix yet another sed bug. | Rob Landley | |
The s/// command would copy the \ of substitutions before deciding what to do with them (generally overwriting the \ with the new data). When the substitution was A) at the very end of the new string, B) resolved to nothing, it could leave a trailing \ that didn't belong there and didn't get overwritten because the "copy trailing data" part that copies the original string's null terminator already happened before the \ overwrote it. The ghostwheel() function restarts regexes after embedded NUL bytes, but if the string it's passed is _longer_ than the length it's told then it gets confused (and it means we're off the end of our allocation so segfaults are likely). Fix: test for \ first and move the "copy byte" logic into an else case. | |||
2014-12-14 | Make sed a\ line continuations work properly for different pattern input modes. | Rob Landley | |
2014-12-13 | Fix bug in sed y/// where bytes in target but not in source were replaced by ↵ | Rob Landley | |
zeroes (nul terminator overwritten). | |||
2014-12-13 | Last sed bugfix broke 'b', fix it. | Rob Landley | |
2014-12-11 | here's a patch that should let us replace toolbox's chcon. | Elliott Hughes | |
(it also adds a feature, -R, because toybox makes that so easy.) you'll probably want fancier configuration here because although the --as-needed works okay, a typical Ubuntu box will have the .so but not the .h files. i did consider adding a toys/selinux/ directory, but given that existing tools like ls and id will want -Z SELinux options, i wasn't sure whether you'd think it was worth segregating the SELinux-only toys. note that this won't help the tizen smack users (and patch for smack won't help SELinux users). so you might want to think about where you'd like us to be aiming: #if USE_SELINUX/USE_SMACK in all the relevant places, or a toys/selinux and a toys/smack (though we'd still need #if in at least ls and id), or a lib/security.c that concentrates all the differences into one file? | |||
2014-12-10 | Make unescape_delimited_string() copy the string so error reporting isn't so ↵ | Rob Landley | |
messed up. | |||
2014-12-10 | Fix some sed bugs and improve error reporting. | Rob Landley | |
A newline after 'b' commands in -e command line patterns was being discarded as whitespace, a single element regex match on a {} was leaving stale state for the next line, and giant -e blobs of instructions were saying things like problem at character 432 (note: nulls inserted for regex processing aren't always cleaned up, screws up error reporting). | |||
2014-12-03 | More gzip stuff: now creates -0 compression files (store only), and does so ↵ | Rob Landley | |
to stdout. | |||
2014-12-02 | Note posix mailing list posting correcting a bug in the web version of the ↵ | Rob Landley | |
standard. | |||
2014-12-02 | Switching on fortify was not kind to the pending directory. Fix the actual ↵ | Rob Landley | |
build break (open(O_CREAT) without permissions). | |||
2014-12-02 | Start of deflate compress-side code, mostly refactoring and stubs so far. | Rob Landley | |
2014-12-01 | Refactor expr and add another test entry that works with TEST_HOST=1 but not ↵ | Rob Landley | |
with the one in pending. | |||
2014-11-29 | Minor whitespace cleanups. | Rob Landley | |
2014-11-29 | expr.c: Added '==' sign into list of operations. Also added support for ↵ | Ashwini Sharma | |
regex pattern match. | |||
2014-11-28 | Tiny in-passing cleanups to more.c. | Rob Landley | |
2014-11-27 | sed: c needs to trigger range logic like d, D works like d when there isn't ↵ | Rob Landley | |
anything left in the line, and more tests. | |||
2014-11-19 | probe for getspnam(), forkpty(), utmpx, replace sethostname() | Isaac Dunham | |
Android is missing all of these; we need to probe for some so we have a config symbol to depend on. sethostname() is easily replaced. We got termios.h via pty.h; now it's not included in configure-step tools, so we need termios.h to generate globals. | |||
2014-11-18 | More sed bugfixes. | Rob Landley | |
2014-11-17 | sed: fix 'q', and { }, and } after s/// with no semicolon. | Rob Landley | |
2014-11-17 | More sed corner cases. (Empty regex repeats previous regex, implement -i, etc.) | Rob Landley | |
2014-11-16 | Fix more sed bugs. | Rob Landley | |
2014-11-16 | Fix sed 'b' with no label and 'N' in general. | Rob Landley | |
2014-11-15 | More sed bugfixes. (Did you know s/[/]// is a valid sed expression?) | Rob Landley | |
2014-11-15 | Debugging pass on sed: make the existing test suite pass. | Rob Landley | |
2014-11-14 | sed: implement s & and \1 backrefs. | Rob Landley | |
2014-11-12 | Implement more sed plumbing, including s/// (without \1 or & yet). | Rob Landley | |
2014-11-10 | Implement another largeish chunk of sed. Untested, unfinished, do not use yet. | Rob Landley | |
2014-11-10 | First cleanup pass on hwclock. | Rob Landley | |
2014-11-10 | hwclock: get and set the hwclock | Ashwini Sharma | |
2014-11-10 | ipcrm : remove msg que, sem or shared memory | Ashwini Sharma | |
2014-11-08 | Implement a few sed commands. Not done, and not tested yet. | Rob Landley | |
2014-11-04 | Next round of sed infrastructure, parses most commands now, doesn't ↵ | Rob Landley | |
implement them yet. | |||
2014-10-30 | Attached are new toys TR and CRONTAB. | Ashwini Sharma | |
*tr.c*: It translate, squezze and delete characters. Supported classes are alpha, alnum, digit, lower, upper space, blank, puct, cntrl and xdigit. *crontab.c*: Companion of crond. It maintains crontab files. | |||
2014-10-29 | Next drop of sed infrastructure, mostly argument parsing, doesn't do ↵ | Rob Landley | |
anything interesting yet. | |||
2014-10-28 | Fill out rest of help text for sed. | Rob Landley | |
2014-10-24 | Basic sed range support, enough for "sed -n 9,11p README" to work. | Rob Landley | |
2014-10-20 | Random in-progress snapshot of sed, not finished yet. | Rob Landley | |
2014-10-20 | More static analysis fixes from Ashwini Sharma. | Rob Landley | |
2014-10-19 | nsenter: A tool to use setns(2) | Andy Lutomirski | |
This implements all of the namespace parts of nsenter, but UID and GID switching are missing, as are -r and -w (both because they're not strictly necessary and because the nsenter manpage has an insufficient description of how they work). |