aboutsummaryrefslogtreecommitdiff
path: root/coreutils/id.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-20 11:30:28 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-20 11:30:28 +0000
commitc86e052b81210e762f8ca6b79cb46b8c4bdfbfe0 (patch)
tree90608280101218f60c7d9181b913e92ba895799d /coreutils/id.c
parente84aeb5bcb1a8398fce53aad9c0072ad73a8b5c9 (diff)
downloadbusybox-w32-c86e052b81210e762f8ca6b79cb46b8c4bdfbfe0.tar.gz
busybox-w32-c86e052b81210e762f8ca6b79cb46b8c4bdfbfe0.tar.bz2
busybox-w32-c86e052b81210e762f8ca6b79cb46b8c4bdfbfe0.zip
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 e183402fa..8a604195d 100644
--- a/coreutils/id.c
+++ b/coreutils/id.c
@@ -48,7 +48,7 @@ int id_main(int argc, char **argv)
48 unsigned long flags; 48 unsigned long flags;
49 short status; 49 short status;
50#if ENABLE_SELINUX 50#if ENABLE_SELINUX
51 security_context_t scontext; 51 security_context_t scontext;
52#endif 52#endif
53 /* Don't allow -n -r -nr -ug -rug -nug -rnug */ 53 /* Don't allow -n -r -nr -ug -rug -nug -rnug */
54 /* Don't allow more than one username */ 54 /* Don't allow more than one username */
@@ -78,26 +78,26 @@ int id_main(int argc, char **argv)
78 puts((flags & JUST_USER) ? bb_getpwuid(NULL, uid, -1 ) : bb_getgrgid(NULL, gid, -1 )); 78 puts((flags & JUST_USER) ? bb_getpwuid(NULL, uid, -1 ) : bb_getgrgid(NULL, gid, -1 ));
79 } else { 79 } else {
80 if (flags & JUST_USER) { 80 if (flags & JUST_USER) {
81 printf("%u\n", uid); 81 printf("%u\n", uid);
82 } 82 }
83 if (flags & JUST_GROUP) { 83 if (flags & JUST_GROUP) {
84 printf("%u\n", gid); 84 printf("%u\n", gid);
85 } 85 }
86 } 86 }
87 87
88#if ENABLE_SELINUX 88#if ENABLE_SELINUX
89 if (flags & JUST_CONTEXT) { 89 if (flags & JUST_CONTEXT) {
90 selinux_or_die(); 90 selinux_or_die();
91 if (argc - optind == 1) { 91 if (argc - optind == 1) {
92 bb_error_msg_and_die("user name can't be passed with -Z"); 92 bb_error_msg_and_die("user name can't be passed with -Z");
93 } 93 }
94 94
95 if (getcon(&scontext)) { 95 if (getcon(&scontext)) {
96 bb_error_msg_and_die("can't get process context"); 96 bb_error_msg_and_die("can't get process context");
97 } 97 }
98 printf("%s\n", scontext); 98 printf("%s\n", scontext);
99 } 99 }
100#endif 100#endif
101 /* exit */ 101 /* exit */
102 fflush_stdout_and_exit(EXIT_SUCCESS); 102 fflush_stdout_and_exit(EXIT_SUCCESS);
103 } 103 }