| Anonymous | Login | Signup for a new account | 11-10-2008 11:13 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0001286 | [BusyBox] Other | minor | always | 03-24-07 07:36 | 03-24-07 09:45 | ||||
| Reporter | rockeychu | View Status | public | ||||||
| Assigned To | BusyBox | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | svn | ||||||
| Summary | 0001286: "re_execed" only used on NOMMU CPU | ||||||||
| Description |
"re_execed" only used on NOMMU CPU, so it should be depended on BB_NOMMU. Patches as following: Index: include/libbb.h =================================================================== --- include/libbb.h (revision 18224) +++ include/libbb.h (working copy) @@ -616,6 +616,7 @@ extern void print_login_issue(const char *issue_file, const char *tty); extern void print_login_prompt(void); #ifdef BB_NOMMU +extern smallint re_execed; extern void vfork_daemon_rexec(int nochdir, int noclose, char **argv); #endif extern int get_terminal_width_height(const int fd, int *width, int *height); @@ -761,7 +762,6 @@ }; #define FILEUTILS_CP_OPTSTR "pdRfils" USE_SELINUX("c") -extern smallint re_execed; extern const char *applet_name; extern const char BB_BANNER[]; Index: applets/busybox.c =================================================================== --- applets/busybox.c (revision 18224) +++ applets/busybox.c (working copy) @@ -7,7 +7,9 @@ #include "busybox.h" const char *applet_name ATTRIBUTE_EXTERNALLY_VISIBLE; -smallint re_execed; +#ifdef BB_NOMMU +smallint re_execed = 0; +#endif #ifdef CONFIG_FEATURE_INSTALLER /* @@ -60,11 +62,13 @@ { const char *s; +#ifdef BB_NOMMU /* NOMMU re-exec trick sets high-order bit in first byte of name */ if (argv[0][0] & 0x80) { re_execed = 1; argv[0][0] &= 0x7f; } +#endif applet_name = argv[0]; if (*applet_name == '-') |
||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
Notes |
|
|
(0002275) vda 03-24-07 09:14 |
I added that code Note: 0000001 hour ago only! rockeychu, you are a maniac, do you know that? ;) Applied, thanks! |
| Copyright © 2000 - 2006 Mantis Group |