diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-05-04 14:54:36 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-05-04 14:54:36 +0000 |
commit | 61652a1a14ebe357db504a3fdb06cf665e38dba2 (patch) | |
tree | 9dbee1bc6b58c09ada9914870ec3ef11bcaf868d | |
parent | 1bb1aa1bd8b4c95091fe74d791d3c3cde74effe1 (diff) | |
download | busybox-w32-61652a1a14ebe357db504a3fdb06cf665e38dba2.tar.gz busybox-w32-61652a1a14ebe357db504a3fdb06cf665e38dba2.tar.bz2 busybox-w32-61652a1a14ebe357db504a3fdb06cf665e38dba2.zip |
applets: fix compile-time warning
git-svn-id: svn://busybox.net/trunk/busybox@18557 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | applets/applets.c | 2 | ||||
-rw-r--r-- | shell/README | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/applets/applets.c b/applets/applets.c index 32c63d1e0..307c8b349 100644 --- a/applets/applets.c +++ b/applets/applets.c | |||
@@ -337,7 +337,6 @@ static inline void parse_config_file(void) | |||
337 | #if ENABLE_FEATURE_SUID | 337 | #if ENABLE_FEATURE_SUID |
338 | static void check_suid(const struct bb_applet *applet) | 338 | static void check_suid(const struct bb_applet *applet) |
339 | { | 339 | { |
340 | uid_t uid; | ||
341 | gid_t rgid; /* real gid */ | 340 | gid_t rgid; /* real gid */ |
342 | 341 | ||
343 | if (ruid == 0) /* set by parse_config_file() */ | 342 | if (ruid == 0) /* set by parse_config_file() */ |
@@ -346,6 +345,7 @@ static void check_suid(const struct bb_applet *applet) | |||
346 | 345 | ||
347 | #if ENABLE_FEATURE_SUID_CONFIG | 346 | #if ENABLE_FEATURE_SUID_CONFIG |
348 | if (suid_cfg_readable) { | 347 | if (suid_cfg_readable) { |
348 | uid_t uid; | ||
349 | struct BB_suid_config *sct; | 349 | struct BB_suid_config *sct; |
350 | mode_t m; | 350 | mode_t m; |
351 | 351 | ||
diff --git a/shell/README b/shell/README index c3e7132ce..d962be9bf 100644 --- a/shell/README +++ b/shell/README | |||
@@ -1,8 +1,13 @@ | |||
1 | Various bits of what is known about busybox shells, in no particular order. | 1 | Various bits of what is known about busybox shells, in no particular order. |
2 | 2 | ||
3 | 2007-05-03 | 3 | 2007-05-03 |
4 | hush: new bug spotted: Ctrl-C on "while true; do true; done" kills shell, | 4 | hush: new bug spotted: Ctrl-C on "while true; do true; done" doesn't |
5 | not just the loop. | 5 | work right: |
6 | # while true; do true; done | ||
7 | [1] 0 true <-- pressing Ctrl-C several times... | ||
8 | [2] 0 true | ||
9 | [3] 0 true | ||
10 | Segmentation fault | ||
6 | 11 | ||
7 | 2007-05-03 | 12 | 2007-05-03 |
8 | hush: update on "sleep 1 | exit 3; echo $?" bug. | 13 | hush: update on "sleep 1 | exit 3; echo $?" bug. |