~ubuntu-branches/debian/lenny/ccache/lenny

« back to all changes in this revision

Viewing changes to execute.c

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2005-06-26 13:33:19 UTC
  • mto: (2.1.1 breezy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050626133319-pcu2jrgcmep18yai
Tags: upstream-2.4
ImportĀ upstreamĀ versionĀ 2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
                int fd;
38
38
 
39
39
                unlink(path_stdout);
40
 
                fd = open(path_stdout, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0666);
 
40
                fd = open(path_stdout, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_BINARY, 0666);
41
41
                if (fd == -1) {
42
42
                        exit(STATUS_NOCACHE);
43
43
                }
45
45
                close(fd);
46
46
 
47
47
                unlink(path_stderr);
48
 
                fd = open(path_stderr, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0666);
 
48
                fd = open(path_stderr, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_BINARY, 0666);
49
49
                if (fd == -1) {
50
50
                        exit(STATUS_NOCACHE);
51
51
                }
76
76
        char *tok;
77
77
        struct stat st1, st2;
78
78
 
 
79
        if (*name == '/') {
 
80
                return x_strdup(name);
 
81
        }
 
82
 
79
83
        path = getenv("CCACHE_PATH");
80
84
        if (!path) {
81
85
                path = getenv("PATH");