History log of /system/core/toolbox/ls.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7bb5660647d0106f96b000c25f5690a45734c38c 23-Jul-2014 Elliott Hughes <enh@google.com> Refresh toolbox.

Use more upstream NetBSD, and update those things that were already NetBSD.

Note that unlike bionic, the upstream-netbsd directory isn't pristine; we have
changes marked by __ANDROID__.

Bug: 16493461

(cherry picked from commit fd4c6b0a3a25921a9fe24691a695d715aecb6afe)

Change-Id: I53267edaac0b92ad062a5df0f3201e3952eb084e
/system/core/toolbox/ls.c
aa907768af7ba9e29901d356cdcac6a436970323 08-May-2014 Mark Salyzyn <salyzyn@google.com> toolbox: turn on -Werror

- Deal with some signedness issues
- Deal with some size issues
- Deal with NULL pointer issues
- Deal with some -Wunused issues

Change-Id: I1479dd90d690084491bae3475f2c547833519a57
/system/core/toolbox/ls.c
4727c7711ea93dd670b3cd5882ce01ff6debf2a6 14-Mar-2014 Mark Salyzyn <salyzyn@google.com> toolbox: ls: 64 bit compile warnings

Change-Id: Ia538c7177f8d5cf2c1f0efb5b575da6527c13968
/system/core/toolbox/ls.c
ccecf1425412beb2bc3bb38d470293fdc244d6f1 16-Jan-2014 Elliott Hughes <enh@google.com> system/core 64-bit cleanup.

This cleans up most of the size-related problems in system/core.
There are still a few changes needed for a clean 64-bit build,
but they look like they might require changes to things like the
fastboot protocol.

Change-Id: I1560425a289fa158e13e2e3173cc3e71976f92c0
/system/core/toolbox/ls.c
ded3464a1099cdeba616dfa7a0df3bcf8671207d 02-Jan-2014 William Roberts <wroberts@tresys.com> toolbox-ls: re-introduce clobbered error message

commit 403b1955 clobbered the error message on lstat()
calls.

Change-Id: Idbd24b648e3a85079b8f8541c0798bf944485ca1
/system/core/toolbox/ls.c
8dfdf650abf4a9c05dbc7c60b7baee22e43c07b5 28-Nov-2013 Nick Kralevich <nnk@google.com> Minor cleanups.

Use ssize_t for handling the result of a readlink call.

Fix the following compiler warning:

system/core/toolbox/ls.c: In function 'listfile_maclabel':
system/core/toolbox/ls.c:238:68: warning: unused parameter 'flags' [-Wunused-parameter]
static int listfile_maclabel(const char *path, struct stat *s, int flags)

Change-Id: Idd65f3349fb9dfb6f7a374c81f72d3169af33505
/system/core/toolbox/ls.c
4ec2910fb670afabc1296bfc57bfd41ca50f00b1 28-Nov-2013 Nick Kralevich <nnk@google.com> Increase buffer size, use bounds checking functions

Increase the size of the user/group buffer from 16 bytes
to 32 bytes. Some OEMs are creating usernames longer than
15 bytes, causing problems.

Use bounds checking functions when handling user/group
data, to avoid overflowing buffers.

Change-Id: I4a5824b819b0c37662ba4f33573af0d0e071b444
/system/core/toolbox/ls.c
403b195548e0b8e692ad9871ae1fb2301959d6a7 04-Apr-2013 William Roberts <w.roberts@sta.samsung.com> Add -i option to toolbox cmd ls

Change-Id: I4690fc10dc07bf1883bcf8ec18399235dc97d317
/system/core/toolbox/ls.c
b83c09812f30d36285cacdf5cf824c56c267f8e5 10-Oct-2012 Kenny Root <kroot@google.com> Remove HAVE_SELINUX guards

Change-Id: Idef0a784a1d237257ff4135bb1df62ff8a67ded3
/system/core/toolbox/ls.c
ef5d0340e4ff3fe11b7668ebaf2f4f0c4c06134d 10-Oct-2012 Kenny Root <kroot@google.com> toolbox: silence some compiler warnings

Comparison of signed and unsigned integers. Use parenthesis around a
group of bitwise OR operations.

Change-Id: Ia404380593ce2c2a291133c07c0fc7a016a3ad3f
/system/core/toolbox/ls.c
8290d1083ec7eee3f32265012f5d6be2774c4afc 13-Jan-2012 Stephen Smalley <sds@tycho.nsa.gov> Extend toolbox with SE Android support.

Add -Z option to ls and ps for displaying security contexts.
Modify id to display security context.
Add new SELinux commands: chcon, getenforce, getsebool, load_policy, restorecon, runcon, setenforce, setsebool.

Change-Id: Ia20941be4a6cd706fe392fed6e38a37d880ec5f1
/system/core/toolbox/ls.c
070ec8e02e12aafc8a636737bba3d5ead7cecd8e 15-Jul-2011 Kenny Root <kroot@google.com> resolved conflicts for merge of 3ea075be to honeycomb-plus-aosp

Change-Id: Ic668cb99822d4bc44f2f57782afd1a6c1b348e9b
40dac659418f84551a5637a9edee03764c570f3c 13-Jul-2011 Kenny Root <kroot@google.com> Add -F for classify to ls

Adds a field to the non-long version of ls that tells what type of file
it is (i.e., regular, directory, link, fifo, etc).

This is useful for scripts that don't have direct filesystem access.

Change-Id: I54a327390f6ed403acb13c824f62ba9594ba320d
/system/core/toolbox/ls.c
a8d1afb3e91b043fcd303a40ca4ac9293bbd2781 06-Jan-2011 David 'Digit' Turner <digit@google.com> toolbox: make getprop print a sorted list of properties

This patch also factors out the dynarray_t/strlist_t code
from ls.c and moves it to dynarray.[hc].

Change-Id: Ifae2b364d7c2733aad5551ad3c78ae72f8ac31f4
/system/core/toolbox/ls.c
e7fe5bf3ac2c0218bda75da78975d6a18fe7c167 25-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Add ls -n to toolbox.

Change-Id: I641f9504554d14fb1289ac470e6e61c5bc12e9c7
/system/core/toolbox/ls.c
0b1ff6be08844c541e36fd735b41990453582ec1 25-Jun-2010 Kenny Root <kroot@google.com> am eb42170e: Display file sizes larger than 2GB correctly

Merge commit 'eb42170e6c8b70f11dca9965785aa04a80290c72' into gingerbread-plus-aosp

* commit 'eb42170e6c8b70f11dca9965785aa04a80290c72':
Display file sizes larger than 2GB correctly
eb42170e6c8b70f11dca9965785aa04a80290c72 25-Jun-2010 Kenny Root <kroot@google.com> Display file sizes larger than 2GB correctly

File size was cast to a signed integer which displayed files over 2GB as
negative sizes on devices. Use a long long for printing instead which
matches the stat struct.

Change-Id: I0ec07f33716bb4c2e5d120633ed435f637238f46
/system/core/toolbox/ls.c
7c84efe083f4cd6b4a322bfe018f26b2f7d1e844 09-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I2f725ca20bf08748a4b3e81a4e98fbe08fcf1a47
aa2106b008921ed8f33ee14ee70fb1b944f547ec 04-Jun-2010 David 'Digit' Turner <digit@android.com> toolbox-ls: sort file and directory lists

Sorts file and directory names properly in 'ls'
+ accept group flags (e.g. '-ld' instead of '-l -d')
+ accept flags in any position on the command line (e.g. 'ls foo -l' works)

Change-Id: Idc24a69ae31fe0c13726d39892357ac89a8830db
/system/core/toolbox/ls.c
9feee025a09ace19b09dbb41d6ba87198c77cdf1 28-Sep-2009 Andy McFadden <fadden@android.com> Fix up ls -s.

Added the "total" line, which makes it easy to answer questions like,
"how the hell much space am I wasting on /data/dalvik-cache?".

Also fixed the -s filename output, which was showing mostly-full paths
when a simple filename was called for.
/system/core/toolbox/ls.c
327e696808910f8e49370079f8d7f4db8cbe3820 18-Aug-2009 Andy McFadden <fadden@android.com> Added -s flag to ls.

This may not be useful, and may actually be misleading since yaffs2
doesn't track the blocks used for each file (it just divides the length
down by 512). I'm submitting it because yaffs2 isn't the only
filesystem we'll ever use.

I also changed some sprintf to snprintf, mostly out of paranoid habit.
/system/core/toolbox/ls.c
b33d3415b6c63f7b22e0863a2ac594feab9171cf 09-Apr-2009 Andy McFadden <> AI 145220: Added "-d" flag to ls.
Now you can "ls -l -d <directory>" to see directory perms.

Automated import of CL 145220
/system/core/toolbox/ls.c
dd7bc3319deb2b77c5d07a51b7d6cd7e11b5beb0 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/core/toolbox/ls.c
e54eebbf1a908d65ee8cf80bab62821c05666d70 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/core/toolbox/ls.c
4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/system/core/toolbox/ls.c