The workaround is to specify a file (or directory) on the command line. If you don't specify a file on the command line, fkiss will look in the current directory for a ".cnf" file. And it will do so with a quasi-recursive search, using a hideous and poorly written function called "dir_ls" in the file "dir.c".
It's beyond me at the moment to work out how to fix that function. However, I can disable the rather stupid "search current directory" functionality. This is easy. Patch attached; it required updating the manpage. I did some serious rewrites while I was at it. I think that's copyright-worthy material, so you'll have to add me to debian/copyright if you use this. I haven't tested this, but I strongly expect it to work. -- Nathanael Nerode <[EMAIL PROTECTED]> Make sure your vote will count. http://www.verifiedvoting.org/
--- selcnf.c.old 2006-08-21 22:05:36.000000000 -0400 +++ selcnf.c 2006-08-21 22:11:27.000000000 -0400 @@ -55,7 +55,6 @@ static char *str_cancel = "(Cancel)"; static MW *mwsel; static char default_cnf_suffix[] = ".cnf"; -static char current_dir[] = "."; int is_regular_file(str) char *str; @@ -256,7 +255,7 @@ conf_dir = get_directory(conf_file); if (!*conf_dir) { free(conf_dir); - conf_dir = ks_strdup(current_dir); + return -2; } return 0; } @@ -271,7 +270,7 @@ if (conf_dir == NULL || !conf_dir[0]) { if (conf_dir != NULL) free(conf_dir); - conf_dir = ks_strdup(current_dir); + return -2; } conflist = find_cnf_file(conf_dir); if (conflist == NULL) { --- fkiss.man.old 2006-08-21 22:12:03.000000000 -0400 +++ fkiss.man 2006-08-21 22:25:58.000000000 -0400 @@ -1,6 +1,8 @@ .\" -*- nroff -*- .\" $Id: fkiss.man,v 1.28 2000/10/17 05:01:58 yav Exp $ .\" +.\" Portions copyright 2006 Nathanael Nerode +.\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or @@ -24,20 +26,22 @@ .B French\-KISS! (\fBfkiss\fP) is a sample implementation of KISekae Set system (KISS) for X Window System. -KISS is a paper doll playing system on computers. +KISS is a paper doll playing system for computers. .br .B fkiss -read +reads .I file.cnf (KISS configuration file), -and read color and cell files described in it. +and reads the color and cell files described in it. If \fIfile.lzh\fP (LHa archive) is specified, .B fkiss -call \fBlha\fP to extract archive -and search *.cnf. -If \fIfile.lzh\fP nor \fIfile.cnf\fP is not specified, -.B fkiss -search *.cnf in current work directory. +calls \fBlha\fP to extract the archive +and searches for *.cnf in the archive. +One of +.I file.cnf +or +.I file.lha +must be specified. .SH OPTIONS .TP .BI \-display " name" @@ -372,10 +376,10 @@ command for playing sound file .SH STANDARDS .B fkiss -is conforming to KISS/GS2, KISS/GS4 (draft). +conforms to KISS/GS2, KISS/GS4 (draft). See kissgs.doc \- KISS/GS (KISS General Specification) Manual. .SH BUGS -Cannot to enjoy colorful dresses on GrayScale and StaticGray visual +Cannot enjoy colorful dresses on GrayScale and StaticGray visual class server. .br TrueColor or DirectColor visual class server is required to display @@ -383,22 +387,19 @@ .br Transrucent image operation is emulated with dither stipple pattern. .br -Not correspond with Network Audio System. +Does not work with Network Audio System. .br \fBXdefaults\fP settings are ignored. -.br -If you have any advices and BUG reports, -please send E\-mail. .SH "SEE ALSO" -kissconv(1), celtoppm(1), ppmtocel(1), xkiss(1) +gnomekiss(1) .SH COPYING -.B French\-KISS! -is a public domain soft\fIwear\fP. -Permission to use, copy, modify, distribute and sell this software -for any purpose is granted without fee, -if you do not disturb my original distribution. +.B French\-KISS! and this manual page +are free software, licensed under the GNU GPL. .br -To get more informations or current version, -Visit my Website "http://www2s.biglobe.ne.jp/~yav/" +The original version by yav is at "http://www2s.biglobe.ne.jp/~yav/". +The version in Debian has been substantially modified to keep it up to date, since +yav seems to have stopped development; please file bug reports with Debian. .SH AUTHOR yav <[EMAIL PROTECTED]> +.br +Large portions of the manpage rewritten by Nathanael Nerode.
pgpcYo8LS5pMW.pgp
Description: PGP signature