[LLVMbugs] [Bug 14438] New: $TMPDIR not respected

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 26 13:43:40 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14438

             Bug #: 14438
           Summary: $TMPDIR not respected
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: peeter.joot at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


scan-build contains the following:

sub GetHTMLRunDir {
...
  if (!defined $Dir) {
    if (`uname` =~ /Darwin/) {
      $Dir = $ENV{'TMPDIR'};
      if (!defined $Dir) { $Dir = "/tmp"; }
    }
    else {
      $Dir = "/tmp";
    }

$TMPDIR is a standard environment variable on any Unix platform.  I don't see a
good reason that this code isn't just:


sub GetHTMLRunDir {
...
  if (!defined $Dir) {
      $Dir = $ENV{'TMPDIR'};
      if (!defined $Dir) { $Dir = "/tmp"; }

especially since /tmp/ can have limited storage available.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list