summaryrefslogtreecommitdiff
path: root/coreutils/id.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-03-20 11:30:28 +0000
committerDenis Vlasenko2007-03-20 11:30:28 +0000
commitc86e052b81210e762f8ca6b79cb46b8c4bdfbfe0 (patch)
tree90608280101218f60c7d9181b913e92ba895799d /coreutils/id.c
parente84aeb5bcb1a8398fce53aad9c0072ad73a8b5c9 (diff)
downloadbusybox-c86e052b81210e762f8ca6b79cb46b8c4bdfbfe0.zip
busybox-c86e052b81210e762f8ca6b79cb46b8c4bdfbfe0.tar.gz
fix accumulated whitespace and indentation damage
Diffstat (limited to 'coreutils/id.c')
-rw-r--r--coreutils/id.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/coreutils/id.c b/coreutils/id.c
index e183402..8a60419 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);
}