The Following User Says Thank You to ade For This Useful Post: | ||
|
2011-11-24
, 16:02
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#162
|
|
2011-11-24
, 16:17
|
Posts: 1,100 |
Thanked: 2,797 times |
Joined on Apr 2011
@ Netherlands
|
#163
|
TMPDIR is set in /etc/profile
with Busybox 1.19.3power1 (*not* the recently updated version) TMPDIR is set correctly when opening X-Terminal (login shell, -sh).
How are you starting bash? If bash doesn't think it's a login shell it might not load /etc/profile. When you run "sh" (Busybox) from bash (or from -sh) TMPDIR is not (or should not be) set again.
If you want bash to read /etc/profile you need "bash --login".
The Following User Says Thank You to ade For This Useful Post: | ||
|
2011-11-24
, 17:34
|
|
Posts: 723 |
Thanked: 519 times |
Joined on Nov 2010
@ Kuching:Malaysia
|
#164
|
|
2011-11-24
, 17:50
|
Posts: 1,100 |
Thanked: 2,797 times |
Joined on Apr 2011
@ Netherlands
|
#165
|
@ade....
could you tell me again step by step to fixed this problem???
your step before this is quite confusing...i try it plenty of time still the same bug on TC...
root apt-get install busybox-power=1.19.3power1
The Following User Says Thank You to ade For This Useful Post: | ||
|
2011-11-24
, 18:38
|
Posts: 268 |
Thanked: 1,053 times |
Joined on May 2010
@ The Netherlands
|
#166
|
@iDont,
I assume you enabled the option for dropping privs when not needed, right?
[sbox-FREMANTLE_ARMEL: ~] > cat busybox/busybox-power/debian/config/config.busybox | grep SUID CONFIG_FEATURE_SUID=y CONFIG_FEATURE_SUID_CONFIG=y CONFIG_FEATURE_SUID_CONFIG_QUIET=y
hi))
In "ls" output russian characters shows as ????, how to fix it?
On default BusyBox all good
IDon't,
I'm experiencing something that looks like some bug in busybox-power_1.19.3power2. But it is strange I have heard no one else about it.
Yesterday I noticed Python apps started losing their skin/buttons.
I traced it down to this:
For some reason, TMPDIR is not set (or unset) in the user shell (it is still set in the root shell).
Because it is not set, python starts looking in /tmp for the sapwood-engine entry (/tmp/sapwood-:0.0), but is is running in /var/tmp. First exporting TMPDIR to /var/tmp before starting solves it for that session.
When I reverted back to busybox-power_1.19.3power1, TMPDIR was set again. Upgraded to busybox-power_1.19.3power2 again, and TMPDIR was gone.
Setting the export in /etc/profile or ~/.profile does not work. The problem does not occur in the bash shell.
Edit: the issue is visable then a sh shell is opened in a existing shell. TMPDIR is not passed on to the next shell.
[dennis@i7-820qm ~]$ export TMPDIR=/tmp [dennis@i7-820qm ~]$ busybox sh $ echo $TMPDIR /tmp $ exit [dennis@i7-820qm ~]$ sudo chmod u+s /bin/busybox [dennis@i7-820qm ~]$ busybox sh $ echo $TMPDIR $ busybox | head -n1 BusyBox v1.19.2 (2011-10-16 17:27:24 UTC) multi-call binary.
The Following 15 Users Say Thank You to iDont For This Useful Post: | ||
ade, Bad_Habit, bocephus, demolition, don_falcone, Estel, fw190, menno, Mentalist Traceur, pusak gaoq, reinob, SeT, szopin, vi_, zeljkobo12 |
|
2011-11-24
, 21:21
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#167
|
|
2011-11-25
, 19:12
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#168
|
The Following User Says Thank You to Mentalist Traceur For This Useful Post: | ||
|
2011-11-27
, 12:12
|
Posts: 268 |
Thanked: 1,053 times |
Joined on May 2010
@ The Netherlands
|
#169
|
At the moment it looks like the issue is an upstream bug. I'll report the bug at BusyBox' bugtracker in a day or so
|
2011-11-28
, 08:43
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#170
|
The Following 3 Users Say Thank You to Estel For This Useful Post: | ||
I described the way to test it a little wrong.
How I tested it: my default shell is bash. From there I opened an sh shell. You guys are probably starting directly in sh.
So please all do the test again: This time: start a new shell in x-terminal (by typing sh). In the latest version of busybox TMPDIR is not set. In the previous version it is.
Sorry for not describing it accuratly in the first place...