summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorRob Landley2006-03-01 20:48:44 +0000
committerRob Landley2006-03-01 20:48:44 +0000
commit08abe64d9180d6d56c49900a2f89f3e9ff507201 (patch)
tree4aa46453022a126c95dd7e6b2b6ee1a579cdf303 /coreutils
parentb7f39732f8f20b88d1b5e90d84dd607205f7d79f (diff)
downloadbusybox-08abe64d9180d6d56c49900a2f89f3e9ff507201.zip
busybox-08abe64d9180d6d56c49900a2f89f3e9ff507201.tar.gz
Selinux fix from Jan Kiszka.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/ls.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 489c29a..79a583a 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -203,10 +203,6 @@ static int list_single(struct dnode *);
static unsigned int all_fmt;
-#ifdef CONFIG_SELINUX
-static int selinux_enabled= 0;
-#endif
-
#ifdef CONFIG_FEATURE_AUTOWIDTH
static int terminal_width = TERMINAL_WIDTH;
static unsigned short tabstops = COLUMN_GAP;
@@ -746,7 +742,7 @@ static int list_single(struct dnode *dn)
case LIST_CONTEXT:
{
char context[80];
- int len;
+ int len = 0;
if (dn->sid) {
/* I assume sid initilized with NULL */