diff options
author | Baruch Sterin <baruchs@gmail.com> | 2010-11-01 02:06:26 -0700 |
---|---|---|
committer | Baruch Sterin <baruchs@gmail.com> | 2010-11-01 02:06:26 -0700 |
commit | 093774c1b869564669848ea5f139154eb454508b (patch) | |
tree | 0ed6f564f736451db0567b5fccdf3bf80ebfb4d1 /src/misc | |
parent | 2d499788ebe377b9c266aaf6ddc2c039946a0296 (diff) | |
download | abc-093774c1b869564669848ea5f139154eb454508b.tar.gz abc-093774c1b869564669848ea5f139154eb454508b.tar.bz2 abc-093774c1b869564669848ea5f139154eb454508b.zip |
fixed compilation in linux
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/ext/module.make | 0 | ||||
-rw-r--r-- | src/misc/util/module.make | 2 | ||||
-rw-r--r-- | src/misc/util/utilFile.c | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/ext/module.make b/src/misc/ext/module.make new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/misc/ext/module.make diff --git a/src/misc/util/module.make b/src/misc/util/module.make index 11d59f51..54fb8291 100644 --- a/src/misc/util/module.make +++ b/src/misc/util/module.make @@ -1 +1 @@ -SRC += utilFile.c +SRC += src/misc/util/utilFile.c diff --git a/src/misc/util/utilFile.c b/src/misc/util/utilFile.c index abdcd635..09af7b0a 100644 --- a/src/misc/util/utilFile.c +++ b/src/misc/util/utilFile.c @@ -102,7 +102,7 @@ int tmpFile(const char* prefix, const char* suffix, char** out_name) close(fd); unlink(*out_name); strcat(*out_name, suffix); - fd = open(fd); + fd = open(*out_name, O_CREAT | O_EXCL | O_RDWR, S_IREAD | S_IWRITE); if (fd == -1){ free(*out_name); *out_name = NULL; |