Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-12-03 | More gzip stuff: now creates -0 compression files (store only), and does so ↵ | Rob Landley | |
to stdout. | |||
2014-12-02 | Fix bug pointed out by Elliott Hughes ("vmstat 1" should repeat endlessly), ↵ | Rob Landley | |
and remove final delay (after all output) for "vmstat 2 3" case. | |||
2014-12-02 | Note posix mailing list posting correcting a bug in the web version of the ↵ | Rob Landley | |
standard. | |||
2014-12-02 | Don't mount a filesystem over an existing one with the same /dev and /dir. | Rob Landley | |
The OS mostly catches this for block devices, but calling "mount -a" twice shouldn't overmount tmpfs entries with new tmpfs instances. (This needs a test suite entry, and the test suite needs a root context to run in...) | |||
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 | Ashwini Sharma pointed out that "mkdir sub; ln -s . sub/up; du -L sub" ↵ | Rob Landley | |
shouldn't loop endlessly. | |||
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-30 | Remove the strncpy from mountpoint, and make a lot of other changes while ↵ | Rob Landley | |
I'm here (to be described on the mailing list). | |||
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-25 | Update dmesg, loosely based on a patch from Elliott Hughes. | Rob Landley | |
Probe the default buffer size, replace the constants with FLAG_x macros, add -r, replace the byte at a time output with a single xwrite(), more comments. | |||
2014-11-25 | Variant of a patch from Ashwini Sharma, making df /dev/node work and ↵ | Rob Landley | |
tweaking the spacing. I didn't apply the POSIXLY_CORRECT gnuism because it's a can of worms (as would be LSB_CORRECT), and you can presumably alias df="df -P" if you want that. Possibly in future I should factor out the "readahead and align columns based on measuring the largest value in each" code from ls and apply it here. | |||
2014-11-24 | Tweak the "ignoring return value" fortify workaround for readlinkat. | Rob Landley | |
We zero the buffer and if the link read fails that's left alone, so it's ok for the symlink not to be there. Unfortunately, typecasting the return value to (void) doesn't shut up gcc, and having an if(); with the semicolon on the same line doesn't shut up llvm. (The semicolon on a new line would, but C does not have significant whitespace and I'm not going to humor llvm if it plans to start.) So far, empty curly brackets consistently get the warning to shut up. | |||
2014-11-22 | As long as Android's going to require fortify, fixup the warnings it generates. | Rob Landley | |
2014-11-22 | Whitespace/code style. | Rob Landley | |
2014-11-21 | A patch against your current ToT that builds in AOSP master. | Elliott Hughes | |
2014-11-19 | Make md5sum and sha1sum work on big endian systems.0.5.1 | Rob Landley | |
2014-11-19 | Fixups for the android/bionic build probes patch. | Rob Landley | |
The CFG_* symbols are always defined so if() can use them as compile-time constants, so don't if defined() them. Doing USE_BLAH() around variable definitions opens up the same potential for config-dependent build breaks as #ifdefs do, just make the whole command depend on the symbol for now, factor out the utmpx infrastructure later. The PTY probe was always failing because it used NULL without #including the header that defines it. Substitute 0 instead. | |||
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-19 | Fix "tail -c 10" segfault spotted by Lukasz Szpakowski. | Rob Landley | |
Once we've read through the initial TT.bytes backlog we discard the extra data, meaning we adjust the remaining amount each time so the overflow is zero bytes. We were doing the adjustment right, but not zeroing out the overflow counter after we did so. | |||
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-30 | Test for ls -d from Isaac Dunham, and he pointed out -F also disables ↵ | Rob Landley | |
symlink following. | |||
2014-10-30 | Bug report from Isaac Dunham: ls -d shouldn't follow command line symlinks ↵ | Rob Landley | |
without -H or -L (just like ls -l). | |||
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-27 | Fix use after free error spotted by ?ukasz Szpakowski. | Rob Landley | |
2014-10-24 | Basic sed range support, enough for "sed -n 9,11p README" to work. | Rob Landley | |
2014-10-22 | Teach ln -f to leave original target alone if link creation fails. | Rob Landley | |
Suggested by Ashwini Sharma, I wound up implementing it by creating the new link at a temporary name and renaming it over the old one instead of renaming the old file out of the way and putting it back if it failed. (Because "mkdir -p one/one/blah && ln -sf /bin/one one" would otherwise rename one/one out of the way and only notice it can't delete it way at the end when recovery's darn awkward, vs create new thing and if rename fails (including EISDIR) that's the main error path. And yes the temporary name is in the same directory as the destination so we never rename between mounts.) link over the old one instead of renaming the old file and renaming it back. | |||
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). | |||
2014-10-17 | unshare: Fix help and option parsing | Andy Lutomirski | |
The help text was inconsistent, and option parsing was completely broken (the options mostly did the wrong thing). |