From 08abe64d9180d6d56c49900a2f89f3e9ff507201 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 1 Mar 2006 20:48:44 +0000 Subject: Selinux fix from Jan Kiszka. --- coreutils/ls.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'coreutils/ls.c') diff --git a/coreutils/ls.c b/coreutils/ls.c index 489c29ad1..79a583a1c 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 */ -- cgit v1.2.3