aboutsummaryrefslogtreecommitdiff
path: root/libbb/parse_mode.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-10-28 18:57:19 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-10-28 18:57:19 +0200
commite4dcba1c103dc28e927e004791e331aaf604383d (patch)
treea18094ecc54fcea2cb523a802e0c414c3e6f85bf /libbb/parse_mode.c
parent776509544123c68bbc128c0fdb2f699062d294cf (diff)
downloadbusybox-w32-e4dcba1c103dc28e927e004791e331aaf604383d.tar.gz
busybox-w32-e4dcba1c103dc28e927e004791e331aaf604383d.tar.bz2
busybox-w32-e4dcba1c103dc28e927e004791e331aaf604383d.zip
*: whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/parse_mode.c')
-rw-r--r--libbb/parse_mode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/parse_mode.c b/libbb/parse_mode.c
index 8ea89163c..5a4e1c579 100644
--- a/libbb/parse_mode.c
+++ b/libbb/parse_mode.c
@@ -57,8 +57,8 @@ int FAST_FUNC bb_parse_mode(const char *s, mode_t *current_mode)
57 /* Note: we allow empty clauses, and hence empty modes. 57 /* Note: we allow empty clauses, and hence empty modes.
58 * We treat an empty mode as no change to perms. */ 58 * We treat an empty mode as no change to perms. */
59 59
60 while (*s) { /* Process clauses. */ 60 while (*s) { /* Process clauses. */
61 if (*s == ',') { /* We allow empty clauses. */ 61 if (*s == ',') { /* We allow empty clauses. */
62 ++s; 62 ++s;
63 continue; 63 continue;
64 } 64 }
@@ -77,7 +77,7 @@ int FAST_FUNC bb_parse_mode(const char *s, mode_t *current_mode)
77 } 77 }
78 } while (*++p); 78 } while (*++p);
79 79
80 do { /* Process action list. */ 80 do { /* Process action list. */
81 if ((*s != '+') && (*s != '-')) { 81 if ((*s != '+') && (*s != '-')) {
82 if (*s != '=') { 82 if (*s != '=') {
83 return 0; 83 return 0;
@@ -93,7 +93,7 @@ int FAST_FUNC bb_parse_mode(const char *s, mode_t *current_mode)
93 op = *s++; 93 op = *s++;
94 94
95 /* Check for permcopy. */ 95 /* Check for permcopy. */
96 p = who_chars + 1; /* Skip 'a' entry. */ 96 p = who_chars + 1; /* Skip 'a' entry. */
97 do { 97 do {
98 if (*p == *s) { 98 if (*p == *s) {
99 int i = 0; 99 int i = 0;
@@ -128,7 +128,7 @@ int FAST_FUNC bb_parse_mode(const char *s, mode_t *current_mode)
128 } 128 }
129 } while (*++p); 129 } while (*++p);
130 GOT_ACTION: 130 GOT_ACTION:
131 if (permlist) { /* The permlist was nonempty. */ 131 if (permlist) { /* The permlist was nonempty. */
132 mode_t tmp = wholist; 132 mode_t tmp = wholist;
133 if (!wholist) { 133 if (!wholist) {
134 mode_t u_mask = umask(0); 134 mode_t u_mask = umask(0);