From c86e052b81210e762f8ca6b79cb46b8c4bdfbfe0 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 20 Mar 2007 11:30:28 +0000 Subject: [PATCH] fix accumulated whitespace and indentation damage --- archival/gzip.c | 2 +- coreutils/cp.c | 2 +- coreutils/id.c | 38 +++--- coreutils/install.c | 4 +- coreutils/ls.c | 2 +- coreutils/mv.c | 2 +- coreutils/stat.c | 4 +- docs/cgi/env.html | 10 +- docs/cgi/interface.html | 2 +- docs/draft-coar-cgi-v11-03-clean.html | 146 +++++++++++----------- include/libbb.h | 4 +- libbb/copy_file.c | 4 +- libbb/selinux_common.c | 2 +- miscutils/less.c | 2 +- selinux/chcon.c | 2 +- shell/ash_test/ash-arith/arith-for.right | 4 +- shell/ash_test/ash-arith/arith-for.testsx | 2 +- shell/ash_test/ash-arith/arith.tests | 4 +- shell/ash_test/ash-heredoc/heredoc.tests | 2 +- shell/ash_test/run-all | 2 +- shell/msh.c | 46 +++---- testsuite/bunzip2.tests | 2 +- util-linux/fdisk_osf.c | 2 +- 23 files changed, 145 insertions(+), 145 deletions(-) diff --git a/archival/gzip.c b/archival/gzip.c index c2333e3b1..b8f576500 100644 --- a/archival/gzip.c +++ b/archival/gzip.c @@ -2019,7 +2019,7 @@ static USE_DESKTOP(long long) int pack_gzip(void) { struct stat s; - + clear_bufs(); s.st_ctime = 0; fstat(STDIN_FILENO, &s); diff --git a/coreutils/cp.c b/coreutils/cp.c index 64cf63797..a80e0d286 100644 --- a/coreutils/cp.c +++ b/coreutils/cp.c @@ -51,7 +51,7 @@ int cp_main(int argc, char **argv) if (flags & OPT_H) ... // deref command-line params only */ -#if ENABLE_SELINUX +#if ENABLE_SELINUX if (flags & FILEUTILS_PRESERVE_SECURITY_CONTEXT) { selinux_or_die(); } diff --git a/coreutils/id.c b/coreutils/id.c index e183402fa..8a604195d 100644 --- a/coreutils/id.c +++ b/coreutils/id.c @@ -48,7 +48,7 @@ int id_main(int argc, char **argv) unsigned long flags; short status; #if ENABLE_SELINUX - security_context_t scontext; + security_context_t scontext; #endif /* Don't allow -n -r -nr -ug -rug -nug -rnug */ /* Don't allow more than one username */ @@ -78,26 +78,26 @@ int id_main(int argc, char **argv) puts((flags & JUST_USER) ? bb_getpwuid(NULL, uid, -1 ) : bb_getgrgid(NULL, gid, -1 )); } else { if (flags & JUST_USER) { - printf("%u\n", uid); - } - if (flags & JUST_GROUP) { - printf("%u\n", gid); - } - } - + printf("%u\n", uid); + } + if (flags & JUST_GROUP) { + printf("%u\n", gid); + } + } + #if ENABLE_SELINUX - if (flags & JUST_CONTEXT) { + if (flags & JUST_CONTEXT) { selinux_or_die(); - if (argc - optind == 1) { - bb_error_msg_and_die("user name can't be passed with -Z"); - } - - if (getcon(&scontext)) { - bb_error_msg_and_die("can't get process context"); - } - printf("%s\n", scontext); - } -#endif + if (argc - optind == 1) { + bb_error_msg_and_die("user name can't be passed with -Z"); + } + + if (getcon(&scontext)) { + bb_error_msg_and_die("can't get process context"); + } + printf("%s\n", scontext); + } +#endif /* exit */ fflush_stdout_and_exit(EXIT_SUCCESS); } diff --git a/coreutils/install.c b/coreutils/install.c index a58a23b6e..c80be01ff 100644 --- a/coreutils/install.c +++ b/coreutils/install.c @@ -41,7 +41,7 @@ static void setdefaultfilecon(const char *path) { if (!is_selinux_enabled()) { return; - } + } if (lstat(path, &s) != 0) { return; } @@ -101,7 +101,7 @@ int install_main(int argc, char **argv) /* -c exists for backwards compatibility, it's needed */ flags = getopt32(argc, argv, "cdpsg:m:o:" USE_SELINUX("Z:"), &gid_str, &mode_str, &uid_str USE_SELINUX(, &scontext)); - + #if ENABLE_SELINUX if (flags & OPT_PRESERVE_SECURITY_CONTEXT) { use_default_selinux_context = 0; diff --git a/coreutils/ls.c b/coreutils/ls.c index 2e68eb848..34836ee29 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -770,7 +770,7 @@ static const unsigned opt_flags[] = { #if ENABLE_FEATURE_AUTOWIDTH 0, 0, /* T, w - ignored */ #endif -#if ENABLE_SELINUX +#if ENABLE_SELINUX LIST_MODEBITS|LIST_ID_NAME|LIST_CONTEXT, /* Z */ #endif (1U<<31) diff --git a/coreutils/mv.c b/coreutils/mv.c index 64cae965b..c08d2327c 100644 --- a/coreutils/mv.c +++ b/coreutils/mv.c @@ -118,7 +118,7 @@ DO_MOVE: copy_flag = FILEUTILS_RECUR | FILEUTILS_PRESERVE_STATUS; #if ENABLE_SELINUX copy_flag |= FILEUTILS_PRESERVE_SECURITY_CONTEXT; -#endif +#endif if ((copy_file(*argv, dest, copy_flag) >= 0) && (remove_file(*argv, FILEUTILS_RECUR | FILEUTILS_FORCE) >= 0)) { goto RET_0; diff --git a/coreutils/stat.c b/coreutils/stat.c index 37a924057..a2cdbfb29 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c @@ -416,7 +416,7 @@ static int do_statfs(char const *filename, char const *format) format = (flags & OPT_TERSE ? (flags & OPT_SELINUX ? "%n %i %l %t %s %b %f %a %c %d %C\n": "%n %i %l %t %s %b %f %a %c %d\n") - : (flags & OPT_SELINUX ? + : (flags & OPT_SELINUX ? " File: \"%n\"\n" " ID: %-8i Namelen: %-7l Type: %T\n" "Block size: %-10s\n" @@ -531,7 +531,7 @@ static int do_stat(char const *filename, char const *format) } #else if (flags & OPT_TERSE) { - format = (flags & OPT_SELINUX ? + format = (flags & OPT_SELINUX ? "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o %C\n": "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o\n"); } else { diff --git a/docs/cgi/env.html b/docs/cgi/env.html index 961671aaa..924026b3e 100644 --- a/docs/cgi/env.html +++ b/docs/cgi/env.html @@ -16,7 +16,7 @@ The following environment variables are not request-specific and are set for all requests: