ALT Linux Bugzilla – #12355
bcc doesn't work because of incorrect $TMPDIR usage
Last modified: 2007-07-17 17:03:43
You need to
before you can comment on or make changes to this bug.
bcc uses TMPDIR var in a following way:
sprintf(buf, "blah$%05d$$@#!@#!@#", some_secure_info);
p = catstr(tmpdir, buf);
then it uses p as a path to tmp file. However, in my ALT installation it
appeared that TMPDIR was equal to /tmp/.private/nidd (notice the absence of / in
the end of the path). This way, bcc tried to create and unlink files like
/tmp/.private/niddblah$$12312$#%#$% and of course it got permission denied error.
Attached patch while it does not look very good fixes the problem.
This happens on every run of bcc which makes is unusable on default installation.
Steps to Reproduce:
compile something with bcc in default ALT environment.
Created an attachment (id=2103) [details]
Thanks, I'll take care.
Applied in 0.16.17-alt5.