source: projects/specs/trunk/d/dbskkd-cdb/dbskkd-cdb-2.00.c.patch @ 10160

Revision 10160, 559 bytes checked in by ara_t, 8 years ago (diff)

add patch and xinetd files

RevLine 
[10160]1--- dbskkd-cdb-2.00_IMPORTED_FROM_SVN/dbskkd-cdb.c.org  2009-02-06 12:00:29.000000000 +0900
2+++ dbskkd-cdb-2.00_IMPORTED_FROM_SVN/dbskkd-cdb.c      2015-07-08 21:25:56.142444170 +0900
3@@ -84,8 +84,8 @@
4   unsigned int keylen, datalen;
5 
6   /* open dictionary cdb file */
7-  if ((dicfd = open(JISYO_FILE, O_RDONLY, S_IRUSR)) < 0) {
8-    diesys("cannot open() the dictionary file " JISYO_FILE);
9+  if ((dicfd = open(argv[1], O_RDONLY, S_IRUSR)) < 0) {
10+    diesys("cannot open() the dictionary file " argv[1]);
11     /* NOTREACHED */
12   }
13   cdb_init(&diccdb, dicfd);
Note: See TracBrowser for help on using the repository browser.