diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pmfileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pmfileio.c b/lib/pmfileio.c index 075f53f6..c9a34533 100644 --- a/lib/pmfileio.c +++ b/lib/pmfileio.c @@ -148,7 +148,7 @@ mkstempx(char * const filenameBuffer) { rc = open(filenameBuffer, O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); - if (rc == 0) { + if (rc >= 0) { fd = rc; gotFile = TRUE; } else { |