Skip to content

Commit

Permalink
Merge pull request #106 from openSUSE/bsc_964709_3
Browse files Browse the repository at this point in the history
remove O_TMPFILE workaround needed for bsc #964709 and bsc #965068
  • Loading branch information
wfeldt committed Apr 25, 2016
2 parents 3f8cc53 + bebbe8a commit 14dabca
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -5353,14 +5353,7 @@ int util_run(char *cmd, unsigned log_stdout)

if(!cmd) return err;

#ifdef __aarch64__
#warning "ugly workaround activated - please remove as soon as glibc is fixed"
// O_TMPFILE definition is broken - see (bsc#965068)
fd = open("/tmp", 0x404000 | O_RDWR, S_IRUSR | S_IWUSR);
#else
// workaround: include O_DIRECTORY so it works on ppc64 (bsc #964709)
fd = open("/tmp", O_TMPFILE | O_DIRECTORY | O_RDWR, S_IRUSR | S_IWUSR);
#endif
fd = open("/tmp", O_TMPFILE | O_RDWR, S_IRUSR | S_IWUSR);

if(fd == -1) {
perror_debug("failed to create tmp file");
Expand Down

0 comments on commit 14dabca

Please sign in to comment.