projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04b366b
)
dtdbcache: Remove old code in comments
author
Jon Trulson
<jon@radscan.com>
Tue, 7 Aug 2012 22:56:11 +0000
(16:56 -0600)
committer
Jon Trulson
<jon@radscan.com>
Tue, 7 Aug 2012 22:56:11 +0000
(16:56 -0600)
Patch from Aaron W. Hsu <arcfide@sacrideo.us>
cde/lib/DtSvc/DtUtil1/MMDb.c
patch
|
blob
|
history
diff --git
a/cde/lib/DtSvc/DtUtil1/MMDb.c
b/cde/lib/DtSvc/DtUtil1/MMDb.c
index 7891340e834d738557ac928e57727e8c4796ecb0..56387ad00ec4016c5d73198a8b6d8b85a30c34c7 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/MMDb.c
+++ b/
cde/lib/DtSvc/DtUtil1/MMDb.c
@@
-689,16
+689,6
@@
write_db(DtDtsMMHeader *header, void *index, int size, const char *CacheFile)
sprintf(tmpfile, "%s/%sXXXXXX", _DTDTSMMTEMPDIR, _DTDTSMMTEMPFILE);
fd = mkstemp(tmpfile);
- /*
- tmpfile = (char *)malloc(sizeof(_DTDTSMMTEMPDIR) +
- sizeof(_DTDTSMMTEMPFILE) + L_tmpnam + 3);
-
- tmpnam(tmpnam_buf);
- sprintf(tmpfile, "%s/%s%s", _DTDTSMMTEMPDIR, _DTDTSMMTEMPFILE,
- basename(tmpnam_buf));
-
- fd = open(tmpfile, O_RDWR|O_CREAT, 0600);
- */
umask(cmask);
if(fd == -1)