Bug 12355 - bcc doesn't work because of incorrect $TMPDIR usage
: bcc doesn't work because of incorrect $TMPDIR usage
: Sisyphus
(All bugs in Sisyphus/dev86)
: unstable
: all Linux
: P4 major
Assigned To:
  Show dependency tree
Reported: 2007-07-17 11:59 by
Modified: 2007-07-17 17:03 (History)

fixed -owl-tmp.patch (1.70 KB, patch)
2007-07-17 12:00, Peter 'Nidd' Novodvorsky
no flags Details | Diff


You need to log in before you can comment on or make changes to this bug.

Description From 2007-07-17 11:59:04
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.
------- Comment #1 From 2007-07-17 12:00:32 -------
Created an attachment (id=2103) [details]
fixed -owl-tmp.patch
------- Comment #2 From 2007-07-17 12:31:54 -------
Thanks, I'll take care.
------- Comment #3 From 2007-07-17 17:03:43 -------
Applied in 0.16.17-alt5.