OSDN Git Service

android-x86/external-toybox.git
9 years agoam 6f52fbcc: Add a symlink for tty(1).
Elliott Hughes [Sun, 31 May 2015 19:04:38 +0000 (19:04 +0000)]
am 6f52fbcc: Add a symlink for tty(1).

* commit '6f52fbcc814f574517cd9a4516f6b9fe45f1afba':
  Add a symlink for tty(1).

9 years agoam 8eaf5baa: Add generated/cflags to .gitignore.
Elliott Hughes [Sun, 31 May 2015 17:14:20 +0000 (17:14 +0000)]
am 8eaf5baa: Add generated/cflags to .gitignore.

* commit '8eaf5baa49687b84716f71f518f5fde133c23b1a':
  Add generated/cflags to .gitignore.

9 years agoam a0da26da: Regenerate generated files.
Elliott Hughes [Sun, 31 May 2015 17:14:19 +0000 (17:14 +0000)]
am a0da26da: Regenerate generated files.

* commit 'a0da26da9e470dd4c6790c4a54d26ac71e144eeb':
  Regenerate generated files.

9 years agoam 8bdb3249: Merge remote-tracking branch \'toybox/master\' into HEAD
Elliott Hughes [Sun, 31 May 2015 17:14:18 +0000 (17:14 +0000)]
am 8bdb3249: Merge remote-tracking branch \'toybox/master\' into HEAD

* commit '8bdb32495fe8f0a038fe0ac02905dc4f2d8c660b':
  Attempt to fix the mkdir LSM race.
  ls -lZ wasn't putting a space before the xattr output.
  mkdir: Fix argument of option -Z
  Make "grep -r regex" work on implicit "." if no files specified.
  Add -Z support to mkdir, based on a patch from Jose Bollo.
  Adapted patch from José Bollo to do the "tonight we're gonna api like it's 1999 and every path ever is from cwd or root" api versions for sockets and as a fallback of the open fails.
  Switch id over to new infrastructure, switch id to use FORCE_FLAGS, and make lib/lsm.h auto-include from toys.h.
  Fix "ls -Z . toys" segfaulting, because preprocessing skipped.
  Recent commit broke ls -R (test reversed), and "ls -R singledir" should show label: at the start (yes, even "ls -R" in an empty dir).
  More ls -Z upgrading. Move TOYBOX_SELINUX and TOYBOX_SMACK support from portability.h to new lib/lsm.h. Update ls.c to use it.
  stat: fix group name

9 years agoAdd a symlink for tty(1).
Elliott Hughes [Sun, 31 May 2015 17:02:48 +0000 (10:02 -0700)]
Add a symlink for tty(1).

It's POSIX and I find myself using it a surprising amount for debugging,
especially adb. (And, as long as our ps is non-standard, you can't just
type "ps" to see what tty you're on.)

Change-Id: I45aae330f0e6bfbd90829005f199b44bb9aa3c50

9 years agoAdd generated/cflags to .gitignore.
Elliott Hughes [Sun, 31 May 2015 16:53:31 +0000 (09:53 -0700)]
Add generated/cflags to .gitignore.

Change-Id: I64b94e69b7670a1c0e739abb650544bd9e5d7d4d

9 years agoRegenerate generated files.
Elliott Hughes [Sun, 31 May 2015 16:51:58 +0000 (09:51 -0700)]
Regenerate generated files.

Change-Id: I7525f17bf72a87d6eb25d687b70e5b7b4dd41d03

9 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Sat, 30 May 2015 20:22:56 +0000 (13:22 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

9 years agoAttempt to fix the mkdir LSM race.
Rob Landley [Thu, 28 May 2015 06:43:47 +0000 (01:43 -0500)]
Attempt to fix the mkdir LSM race.

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.

9 years agoam 632d81c4: Add MODULE_LICENSE and NOTICE
Bill Yi [Fri, 22 May 2015 21:11:09 +0000 (21:11 +0000)]
am 632d81c4: Add MODULE_LICENSE and NOTICE

* commit '632d81c469358ec4f41a90474dcf93326839438a':
  Add MODULE_LICENSE and NOTICE

9 years agoAdd MODULE_LICENSE and NOTICE
Bill Yi [Fri, 22 May 2015 20:45:26 +0000 (13:45 -0700)]
Add MODULE_LICENSE and NOTICE

Change-Id: I0c800604bcbd6b5e63f3782540754f07534c22fb

9 years agols -lZ wasn't putting a space before the xattr output.
Rob Landley [Fri, 22 May 2015 02:25:41 +0000 (21:25 -0500)]
ls -lZ wasn't putting a space before the xattr output.

9 years agomkdir: Fix argument of option -Z
José Bollo [Fri, 22 May 2015 02:00:25 +0000 (21:00 -0500)]
mkdir: Fix argument of option -Z

9 years agoMake "grep -r regex" work on implicit "." if no files specified.
Rob Landley [Thu, 21 May 2015 04:59:53 +0000 (23:59 -0500)]
Make "grep -r regex" work on implicit "." if no files specified.

9 years agoAdd -Z support to mkdir, based on a patch from Jose Bollo.
Rob Landley [Wed, 20 May 2015 04:29:18 +0000 (23:29 -0500)]
Add -Z support to mkdir, based on a patch from Jose Bollo.

I have no idea why -Z isn't showing up in mkdir --help when enabled, I
need to look at that...

9 years agoAdapted patch from José Bollo to do the "tonight we're gonna api like
Rob Landley [Tue, 19 May 2015 19:53:06 +0000 (14:53 -0500)]
Adapted patch from José Bollo to do the "tonight we're gonna api like
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.)

9 years agoSwitch id over to new infrastructure, switch id to use FORCE_FLAGS, and
Rob Landley [Tue, 19 May 2015 00:14:53 +0000 (19:14 -0500)]
Switch id over to new infrastructure, switch id to use FORCE_FLAGS, and
make lib/lsm.h auto-include from toys.h.

9 years agoFix "ls -Z . toys" segfaulting, because preprocessing skipped.
Rob Landley [Mon, 18 May 2015 19:48:11 +0000 (14:48 -0500)]
Fix "ls -Z . toys" segfaulting, because preprocessing skipped.

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.

9 years agoRecent commit broke ls -R (test reversed), and "ls -R singledir" should
Rob Landley [Mon, 18 May 2015 18:33:36 +0000 (13:33 -0500)]
Recent commit broke ls -R (test reversed), and "ls -R singledir" should
show label: at the start (yes, even "ls -R" in an empty dir).

9 years agoMore ls -Z upgrading. Move TOYBOX_SELINUX and TOYBOX_SMACK support from
Rob Landley [Mon, 18 May 2015 07:00:43 +0000 (02:00 -0500)]
More ls -Z upgrading. Move TOYBOX_SELINUX and TOYBOX_SMACK support from
portability.h to new lib/lsm.h. Update ls.c to use it.

Fix "ls . toys" (two directories when one is . or ..), which was filtering
out the . as something we shouldn't recurse into even though it was explicitly
listed on the command line. For some reason "ls -Z . toys" is still segfaulting
though (but "ls -Z ." isn't), need to figure out why...

9 years agoMerge branch 'mnc-dev-plus-aosp' of https://googleplex-android.googlesource.com/_dire...
Elliott Hughes [Sat, 16 May 2015 06:50:27 +0000 (06:50 +0000)]
Merge branch 'mnc-dev-plus-aosp' of https://googleplex-android.googlesource.com/_direct/platform/external/toybox into mnc-dev-plus-aosp

9 years agoam 45d0f825: Revert "Switch to toybox ls."
Elliott Hughes [Sat, 16 May 2015 06:50:23 +0000 (06:50 +0000)]
am 45d0f825: Revert "Switch to toybox ls."

* commit '45d0f825c8d3c3b2dea18796ebb04071672ead0f':
  Revert "Switch to toybox ls."

9 years agoRevert "Switch to toybox ls."
Elliott Hughes [Sat, 16 May 2015 06:28:13 +0000 (06:28 +0000)]
Revert "Switch to toybox ls."

This reverts commit 981564094b07bb82d78667f317478a8a018a814b.

Change-Id: Ib84805d06a8ba281bc2a5d2f2b469f6f07d1769a
(cherry picked from commit 45d0f825c8d3c3b2dea18796ebb04071672ead0f)

9 years agoRevert "Switch to toybox ls."
Elliott Hughes [Sat, 16 May 2015 06:28:13 +0000 (06:28 +0000)]
Revert "Switch to toybox ls."

This reverts commit 981564094b07bb82d78667f317478a8a018a814b.

Change-Id: Ib84805d06a8ba281bc2a5d2f2b469f6f07d1769a

9 years agoMerge remote-tracking branch 'goog/mnc-dev-plus-aosp' into mm
Elliott Hughes [Sat, 16 May 2015 00:55:54 +0000 (17:55 -0700)]
Merge remote-tracking branch 'goog/mnc-dev-plus-aosp' into mm

9 years agoam 98156409: Switch to toybox ls.
Elliott Hughes [Sat, 16 May 2015 00:43:20 +0000 (00:43 +0000)]
am 98156409: Switch to toybox ls.

* commit '981564094b07bb82d78667f317478a8a018a814b':
  Switch to toybox ls.

9 years agoam 30d712d3: Remove lspci.
Elliott Hughes [Sat, 16 May 2015 00:37:34 +0000 (00:37 +0000)]
am 30d712d3: Remove lspci.

* commit '30d712d325f71d51d428b94ead0ef9f4698f30c8':
  Remove lspci.

9 years agoSwitch to toybox ls.
Elliott Hughes [Sat, 16 May 2015 00:25:51 +0000 (17:25 -0700)]
Switch to toybox ls.

Change-Id: I8c34fbd8d9b004f52ec8ed882603e3dc1935b001

9 years agoam b2b5cd5a: Merge "Regenerate generated files."
Elliott Hughes [Fri, 15 May 2015 23:56:28 +0000 (23:56 +0000)]
am b2b5cd5a: Merge "Regenerate generated files."

* commit 'b2b5cd5a0c0f30b0d45475f3d0f77dafd53d7090':
  Regenerate generated files.

9 years agoam e69c92ad: Merge remote-tracking branch \'toybox/master\' into HEAD
Elliott Hughes [Fri, 15 May 2015 23:56:27 +0000 (23:56 +0000)]
am e69c92ad: Merge remote-tracking branch \'toybox/master\' into HEAD

* commit 'e69c92ad4ce2566786a31c216274155c8324cb2b':
  Bugfix from Hyejin Kim: su should not prompt root user for new user's password.
  Promote reset (actually write a new one using the simple man 4 console_codes terminal reset escape sequence) and add gettty() function to lib so terminal gets reset even when we redirect stdout/stderr. (This is apparently the expected behavior.)
  Print name of file at the bottom of the screen.
  More hexedit cursor boundary tweaking.
  Fix bug (len[7] wasn't zeroed if -Z off, thus -C overestimated entry lengths), and some cleanups while I was there.
  Set the executable bits on all the *.test files. (Wasn't consistent, is now.)
  Git hates me.
  Cleanups of dirtree_start() calls. (Don't need to feed in flag values, just symfollow true/false.)
  Add DIRTREE_SHUTUP to disable dirtree warnings if file vanishes out from under traversal. Pass through full flag set in dirtree_add_node(), add dirtree_start() wrapper to provide symlink-only behavior (avoiding a lot of DIRTREE_SYMFOLLOW*!!(logic) repeated in callers).
  Probe for -Wno-string-plus-int.
  Move not-curses code into interstingtimes.c

9 years agoRemove lspci.
Elliott Hughes [Fri, 15 May 2015 23:41:23 +0000 (16:41 -0700)]
Remove lspci.

This makes no sense right now, not least because we don't have the database.

Change-Id: I7d56386e81b1995577a9813663a9594357618a02

9 years agoMerge "Regenerate generated files."
Elliott Hughes [Fri, 15 May 2015 23:33:13 +0000 (23:33 +0000)]
Merge "Regenerate generated files."

9 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Fri, 15 May 2015 23:27:24 +0000 (16:27 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

9 years agoRegenerate generated files.
Elliott Hughes [Fri, 15 May 2015 23:26:09 +0000 (16:26 -0700)]
Regenerate generated files.

Change-Id: Id114fc92751e1809eab477c1f0a0d855ce65246a

9 years agostat: fix group name
José Bollo [Wed, 6 May 2015 12:57:51 +0000 (14:57 +0200)]
stat: fix group name

Change-Id: I0ad65a40bf380d789c4396ebdc01be217901a2e3

9 years agoBugfix from Hyejin Kim: su should not prompt root user for new user's password.
Rob Landley [Thu, 14 May 2015 18:48:55 +0000 (13:48 -0500)]
Bugfix from Hyejin Kim: su should not prompt root user for new user's password.

9 years agoPromote reset (actually write a new one using the simple man 4 console_codes
Rob Landley [Thu, 14 May 2015 18:43:01 +0000 (13:43 -0500)]
Promote reset (actually write a new one using the simple man 4 console_codes
terminal reset escape sequence) and add gettty() function to lib so terminal
gets reset even when we redirect stdout/stderr. (This is apparently the
expected behavior.)

9 years agoPrint name of file at the bottom of the screen.
Rob Landley [Wed, 13 May 2015 06:34:01 +0000 (01:34 -0500)]
Print name of file at the bottom of the screen.

And yes, I tested $PWD/私はガラスを食べられま す。それは私を傷つけません。
as a name and made it work. If you throw newlines or ascii escapes in the
name it'll use the fancy printing logic for chars, otherwise it does the
full utf8 fontmetrics deal.

9 years agoMore hexedit cursor boundary tweaking.
Rob Landley [Wed, 13 May 2015 05:22:26 +0000 (00:22 -0500)]
More hexedit cursor boundary tweaking.

9 years agoFix bug (len[7] wasn't zeroed if -Z off, thus -C overestimated entry lengths),
Rob Landley [Wed, 13 May 2015 05:04:50 +0000 (00:04 -0500)]
Fix bug (len[7] wasn't zeroed if -Z off, thus -C overestimated entry lengths),
and some cleanups while I was there.

9 years agoSet the executable bits on all the *.test files. (Wasn't consistent, is now.)
Rob Landley [Tue, 12 May 2015 18:24:26 +0000 (13:24 -0500)]
Set the executable bits on all the *.test files. (Wasn't consistent, is now.)

9 years agoGit hates me.
Rob Landley [Sun, 10 May 2015 23:56:49 +0000 (18:56 -0500)]
Git hates me.

9 years agoCleanups of dirtree_start() calls. (Don't need to feed in flag values, just
Rob Landley [Sun, 10 May 2015 05:21:42 +0000 (00:21 -0500)]
Cleanups of dirtree_start() calls. (Don't need to feed in flag values, just
symfollow true/false.)

9 years agoAdd DIRTREE_SHUTUP to disable dirtree warnings if file vanishes out from
Rob Landley [Sat, 9 May 2015 23:11:22 +0000 (18:11 -0500)]
Add DIRTREE_SHUTUP to disable dirtree warnings if file vanishes out from
under traversal. Pass through full flag set in dirtree_add_node(), add
dirtree_start() wrapper to provide symlink-only behavior (avoiding a lot
of DIRTREE_SYMFOLLOW*!!(logic) repeated in callers).

9 years agoProbe for -Wno-string-plus-int.
Rob Landley [Sat, 9 May 2015 22:07:22 +0000 (17:07 -0500)]
Probe for -Wno-string-plus-int.

LLVM has its own nuts warnings about things that aren't wrong, but disabling
them with the relevant -Wno-* warning disabling command line option drives
gcc nuts because it's a command line option it doesn't recognize. (gcc 4.2.1
dies with an error. gcc 4.6 warns about it _only_ if it's warning about
something else. (PICK ONE, either you warn about this or you don't, distract
people from actual problems with noise about something clearly unrelated to
what just changed is extra-stupid.)

So just probe for it, and add the flag only if it doesn't complain about it
while we're producing an unrelated warning.

9 years agoMove not-curses code into interstingtimes.c
Rob Landley [Sat, 9 May 2015 01:20:29 +0000 (20:20 -0500)]
Move not-curses code into interstingtimes.c

9 years agoMerge remote-tracking branch 'goog/mnc-dev-plus-aosp' into mm
Elliott Hughes [Fri, 8 May 2015 19:41:12 +0000 (12:41 -0700)]
Merge remote-tracking branch 'goog/mnc-dev-plus-aosp' into mm

9 years agoam 0a5fd80f: Regenerate generated files.
Elliott Hughes [Fri, 8 May 2015 18:01:42 +0000 (18:01 +0000)]
am 0a5fd80f: Regenerate generated files.

* commit '0a5fd80f5bd4a54301e9f519520bfea853b2cf72':
  Regenerate generated files.

9 years agoam 157763b5: Merge remote-tracking branch \'toybox/master\' into HEAD
Elliott Hughes [Fri, 8 May 2015 18:01:41 +0000 (18:01 +0000)]
am 157763b5: Merge remote-tracking branch \'toybox/master\' into HEAD

* commit '157763b582eb4ac50fed36a901b02fee8415aa00':
  Fix more with missing files.
  Re-enable catv command now that flag infrastructure is updated.

9 years agoRegenerate generated files.
Elliott Hughes [Fri, 8 May 2015 17:39:42 +0000 (10:39 -0700)]
Regenerate generated files.

Change-Id: I0fa3010adc8740b1eaf19b3d073807618ca785ff

9 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Fri, 8 May 2015 17:33:46 +0000 (10:33 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

9 years agoMerge remote-tracking branch 'goog/mnc-dev-plus-aosp' into mm
Elliott Hughes [Thu, 7 May 2015 19:39:36 +0000 (12:39 -0700)]
Merge remote-tracking branch 'goog/mnc-dev-plus-aosp' into mm

9 years agoFix more with missing files.
Elliott Hughes [Wed, 6 May 2015 21:39:12 +0000 (16:39 -0500)]
Fix more with missing files.

Previously we'd go into an infinite loop because we weren't
incrementing optargs.

Also add a missing flush so an error on stderr won't overtake the
escape code that resets reverse video.

Disclaimer: the new behavior isn't exactly like the desktop version;
surprisingly they try to open the next file _before_ they prompt. That
feels weird to me as a user, and seems like it would lead to a more
awkward implementation, but if you're more concerned about
authenticity...

9 years agoRe-enable catv command now that flag infrastructure is updated.
Rob Landley [Wed, 6 May 2015 21:21:19 +0000 (16:21 -0500)]
Re-enable catv command now that flag infrastructure is updated.

9 years agoRegenerate generated files.
Elliott Hughes [Tue, 5 May 2015 20:17:47 +0000 (13:17 -0700)]
Regenerate generated files.

Change-Id: Ie882b61d9bf3489348d145bc127bab8a128397fe

9 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Tue, 5 May 2015 20:15:19 +0000 (13:15 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

9 years agoImplement SELinux ls -Z support.
Elliott Hughes [Mon, 4 May 2015 17:56:16 +0000 (12:56 -0500)]
Implement SELinux ls -Z support.

This patch uses lgetfilecon rather than fgetfilecon because
dirtree_parentfd always seems to return -1 in this function. If/when
the SMACK code is fixed to work with dirtree_parentfd, I'll send a
matching patch for SELinux.

In the meantime, this works, and although ls -h is still on my to-do
list, I think this patch is sufficient to let us replace toolbox ls
with toybox ls.

9 years agoRegenerate generated files after upstream sync.
Elliott Hughes [Mon, 4 May 2015 01:48:57 +0000 (18:48 -0700)]
Regenerate generated files after upstream sync.

Change-Id: I21fdf950573bd41610c524c63c71c22939e5badb

9 years agoReplace android-specific hack with just signal(SIGPIPE, SIG_IGN).
Rob Landley [Mon, 4 May 2015 01:18:53 +0000 (20:18 -0500)]
Replace android-specific hack with just signal(SIGPIPE, SIG_IGN).

9 years agoYank smack from singleconfig.
Rob Landley [Mon, 4 May 2015 01:15:52 +0000 (20:15 -0500)]
Yank smack from singleconfig.

Need to come up with a better solution to this, but the problem is that
single.sh's symbol enabling isn't dependency aware, and "silentoldconfig"
prompts. I suspect the better solution is "write a kconfig replacement".

9 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 4 May 2015 00:32:42 +0000 (17:32 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: If8daf7f2f2e1b6d688050c4543d2648320bb21ad

9 years agoFix dmesg -c error output.
Elliott Hughes [Sun, 3 May 2015 21:25:09 +0000 (16:25 -0500)]
Fix dmesg -c error output.

Use perror_exit to show the likely "Operation not permitted" if klogctl fails.

9 years agoMove a prototype to the start of portability.h (suggested by Elliott Hughes)
Rob Landley [Sun, 3 May 2015 21:20:27 +0000 (16:20 -0500)]
Move a prototype to the start of portability.h (suggested by Elliott Hughes)

9 years agodhcpd writes leases on "dhcpd.leases" file.
Hyejin Kim [Sun, 3 May 2015 20:53:37 +0000 (15:53 -0500)]
dhcpd writes leases on "dhcpd.leases" file.
but, dumpleases read from "udhcpd.leases".

9 years agoFix getprop sorting and error reporting.
Elliott Hughes [Sun, 3 May 2015 20:31:41 +0000 (15:31 -0500)]
Fix getprop sorting and error reporting.

Use qstrcmp instead of alphasort (which expects struct dirent arguments).

Don't use perror_exit because property_list doesn't set errno.

9 years agoMinor dmesg cleanup.
Rob Landley [Sun, 3 May 2015 20:13:41 +0000 (15:13 -0500)]
Minor dmesg cleanup.

9 years agoIf a shortopt is configured out right before a bare longopt, the option parsing infra...
Rob Landley [Sun, 3 May 2015 17:41:05 +0000 (12:41 -0500)]
If a shortopt is configured out right before a bare longopt, the option parsing infrastructure segfaults because there's no next shortopt but the list isn't empty. (There was a test for this, but we're simultaneously traversing two lists and it was testing the wrong one.)

9 years agodmesg: add -t suppress timestamp flag
Mark Salyzyn [Sat, 2 May 2015 22:41:27 +0000 (17:41 -0500)]
dmesg: add -t suppress timestamp flag

9 years agoDon't build chvt.
Elliott Hughes [Sat, 2 May 2015 18:38:41 +0000 (11:38 -0700)]
Don't build chvt.

This functionality has been disabled in Android kernels since Cupcake.

Change-Id: I1855df32b618b3889eec75fbac7faac87ea385e0

9 years agoPortability bits for the recent ls smack changes.
Rob Landley [Fri, 1 May 2015 19:40:49 +0000 (14:40 -0500)]
Portability bits for the recent ls smack changes.

9 years agoMore ls cleanups from squinting at Jose's most recent smack patch.
Rob Landley [Thu, 30 Apr 2015 21:51:50 +0000 (16:51 -0500)]
More ls cleanups from squinting at Jose's most recent smack patch.

Behavior change in flags: allow -long to work together, and -l1 work like -l
not -1.

I didn't make ls -gCl remember the g, though. (Because -Cg and -gC take
the last one: I'll preserve explicit state but not implicit state. And if
-1Cl and -lC1 aren't going to behave the same, it wasn't consistent anyway.)

9 years agoAdd default sigpipe handler for android (as suggested by Elliott Hughes).
Rob Landley [Thu, 30 Apr 2015 20:11:34 +0000 (15:11 -0500)]
Add default sigpipe handler for android (as suggested by Elliott Hughes).

9 years agoAnd remove the header part too.
Rob Landley [Thu, 30 Apr 2015 19:18:47 +0000 (14:18 -0500)]
And remove the header part too.

9 years agoWild guess at cleaning up smack support. Don't have a test environment yet.
Rob Landley [Thu, 30 Apr 2015 19:02:34 +0000 (14:02 -0500)]
Wild guess at cleaning up smack support. Don't have a test environment yet.

9 years agoRemove redundant numlen.
Rob Landley [Thu, 30 Apr 2015 19:01:35 +0000 (14:01 -0500)]
Remove redundant numlen.

9 years agols: Add -Z (Smack) option
Jan Cybulski [Mon, 20 Oct 2014 13:26:12 +0000 (15:26 +0200)]
ls: Add -Z (Smack) option

Option triggers printing security context,
for smack that is file's access smack label.

Change-Id: I9054d9bcfe4d149e8fbfa0831b6ab50165d2bd91
Signed-off-by: Jan Cybulski <j.cybulski@samsung.com>
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agoFix truncate prefix bug and add truncate test suite entry.
Rob Landley [Tue, 28 Apr 2015 17:18:17 +0000 (12:18 -0500)]
Fix truncate prefix bug and add truncate test suite entry.

9 years agoAdd prefix support Hyejin Kim asked about.
Rob Landley [Tue, 28 Apr 2015 16:45:13 +0000 (11:45 -0500)]
Add prefix support Hyejin Kim asked about.

9 years agoFix ls -s and -i indentation in -C and -x modes. (Spotted by Jan Cybulski.)
Rob Landley [Mon, 27 Apr 2015 23:56:11 +0000 (18:56 -0500)]
Fix ls -s and -i indentation in -C and -x modes. (Spotted by Jan Cybulski.)

9 years agoPromote hexedit to other.
Rob Landley [Mon, 27 Apr 2015 16:14:46 +0000 (11:14 -0500)]
Promote hexedit to other.

9 years agoSome infrastructure hexedit needs. (Poor man's curses.)
Rob Landley [Mon, 27 Apr 2015 16:13:19 +0000 (11:13 -0500)]
Some infrastructure hexedit needs. (Poor man's curses.)

9 years agoTeach hexedit to actually edit. Add -r option for read only mode.
Rob Landley [Mon, 27 Apr 2015 16:08:40 +0000 (11:08 -0500)]
Teach hexedit to actually edit. Add -r option for read only mode.

9 years agoFix display and cursor control (to respect bottom boundary).
Rob Landley [Sat, 25 Apr 2015 20:52:59 +0000 (15:52 -0500)]
Fix display and cursor control (to respect bottom boundary).

No actual editing yet.

9 years agoToo tired on the flight back from Japan to work on thinky stuff, so...
Rob Landley [Fri, 24 Apr 2015 22:09:51 +0000 (17:09 -0500)]
Too tired on the flight back from Japan to work on thinky stuff, so...

9 years agoUse "git rev-parse" for the toybox version.
Elliott Hughes [Sat, 18 Apr 2015 21:03:18 +0000 (14:03 -0700)]
Use "git rev-parse" for the toybox version.

This is similar to upstream commit 90afbad4c1f115d5363fe99eb797d2458cd298a0,
but without relying on tags (which we don't have) and with an extra
"-android" on the end.

Change-Id: Iec1c50acf2615236213d511ff10845a31c9b9d0f

9 years agoBugfix from Hyejin Kim (count=1 shouldn't change name), plus a bounds check.
Rob Landley [Tue, 21 Apr 2015 06:45:07 +0000 (01:45 -0500)]
Bugfix from Hyejin Kim (count=1 shouldn't change name), plus a bounds check.

Test is 'echo "AAA c 1 0 0 2 5 0 0 1" | makedevs' makes AAA not AAA0.

9 years agoSwitch setprop to use TOYBOX_ON_ANDROID and fix getprop include.
Rob Landley [Tue, 21 Apr 2015 01:59:00 +0000 (20:59 -0500)]
Switch setprop to use TOYBOX_ON_ANDROID and fix getprop include.

(I commented out the android-only #include in getprop to do what compile
testing I could, and then forgot to uncomment it.)

9 years agoCleanup getprop, add qstrcmp() to lib for qsort (because posix-2008 broke
Rob Landley [Mon, 20 Apr 2015 02:50:51 +0000 (21:50 -0500)]
Cleanup getprop, add qstrcmp() to lib for qsort (because posix-2008 broke
alphasort), add compile-time probe for config symbol TOYBOX_ON_ANDROID.

9 years agomdev: implement hotplug support.
Isaac Dunham [Sat, 18 Apr 2015 18:25:06 +0000 (18:25 +0000)]
mdev: implement hotplug support.

Use DEVPATH, DEVNAME, MAJOR, MINOR, and SUBSYSTEM instead of
checking the current path and reading .../dev.
While we're here, probe for partitions in block devices.

This uses a very lame check for ACTION (which can be add, remove,
or change): if it is "remove", then unlink the device.

9 years agoRoadmap update, mostly from enh with a few other pending bits mixed in.
Rob Landley [Sun, 19 Apr 2015 05:15:46 +0000 (00:15 -0500)]
Roadmap update, mostly from enh with a few other pending bits mixed in.

9 years agoAndroid getprop and setprop from Elliott Hughes.
Rob Landley [Sun, 19 Apr 2015 01:28:15 +0000 (20:28 -0500)]
Android getprop and setprop from Elliott Hughes.

9 years agoRegenerate generated files.
Elliott Hughes [Sat, 18 Apr 2015 20:54:00 +0000 (13:54 -0700)]
Regenerate generated files.

Also temporarily stop building pending/ps.c --- it's under construction
and doesn't currently build with clang.

Change-Id: Ie83dc65be22df5850b08569ebb1b88d26155aca5

9 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Sat, 18 Apr 2015 20:40:26 +0000 (13:40 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

9 years agoLink against libattr and libsmack.
Xavier Roche [Sat, 18 Apr 2015 01:18:30 +0000 (20:18 -0500)]
Link against libattr and libsmack.

9 years agoFix a trivial typo in www/about.html.
Elliott Hughes [Fri, 17 Apr 2015 07:52:11 +0000 (02:52 -0500)]
Fix a trivial typo in www/about.html.

Sticky shift key...

9 years agoMake toybox --version use the "git describe" info if it's available.
Rob Landley [Fri, 17 Apr 2015 07:46:11 +0000 (02:46 -0500)]
Make toybox --version use the "git describe" info if it's available.

9 years agoterminal_size should use LINES, not ROWS.
Elliott Hughes [Fri, 17 Apr 2015 02:21:02 +0000 (21:21 -0500)]
terminal_size should use LINES, not ROWS.

The shell's pseudo-variable is called LINES. This is true of at least
bash and mksh.

9 years agoShout from the rooftops that pending is not like other directories.
Rob Landley [Fri, 17 Apr 2015 01:10:23 +0000 (20:10 -0500)]
Shout from the rooftops that pending is not like other directories.

9 years agoPut SELINUX in a a menu, and add config option for SMACK.
Rob Landley [Thu, 16 Apr 2015 01:53:00 +0000 (20:53 -0500)]
Put SELINUX in a a menu, and add config option for SMACK.

9 years agoRegenerate generated files.
Elliott Hughes [Wed, 15 Apr 2015 18:40:14 +0000 (11:40 -0700)]
Regenerate generated files.

Change-Id: Ib06b41baacadd957260434b0d9b1217002e5a754