Package: seyon
Version: 2.20c-30
Severity: normal
Tags: patch

Seyon can find `phonelist' and `startup' under `~/.seyon/' directory, but can't
find `~/.seyon/protocols'.

That is caused by the misuse of function `open_file()'.  The following patch
fixes it.

diff -uprN seyon-2.20c/SeSubsX.c seyon-2.20c_patched/SeSubsX.c
--- seyon-2.20c/SeSubsX.c       2010-08-20 15:43:52.000000000 +0800
+++ seyon-2.20c_patched/SeSubsX.c       2010-08-20 15:37:04.000000000 +0800
@@ -232,7 +232,7 @@ read_seyon_file(name, line)
 {
   FILE           *fp;

-  if ((fp = open_file(name, qres.defaultDirectory)) == NULL)
+  if ((fp = open_file(name, 0, qres.defaultDirectory)) == NULL)
     return False;

   ReadCommentedFile(fp, line);
diff -uprN seyon-2.20c/SeTrans.c seyon-2.20c_patched/SeTrans.c
--- seyon-2.20c/SeTrans.c       2010-08-20 15:43:52.000000000 +0800
+++ seyon-2.20c_patched/SeTrans.c       2010-08-20 15:37:24.000000000 +0800
@@ -187,7 +187,7 @@ ReadParseProtFile(fname, disItems)
   int             i,
                   n;

-  if ((fp = open_file(fname, qres.defaultDirectory)) == NULL)
+  if ((fp = open_file(fname, REG_BUF, qres.defaultDirectory)) == NULL)
     return -1;

   ReadCommentedFile(fp, rawItems);



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages seyon depends on:
ii  debconf [debconf-2.0]         1.5.35     Debian configuration management sy
ii  gnome-terminal [x-terminal-em 2.30.2-1   The GNOME terminal emulator applic
ii  libc6                         2.11.2-2   Embedded GNU C Library: Shared lib
ii  libice6                       2:1.0.6-1  X11 Inter-Client Exchange library
ii  libsm6                        2:1.1.1-1  X11 Session Management library
ii  libx11-6                      2:1.3.3-3  X11 client-side library
ii  libxaw7                       2:1.0.7-1  X11 Athena Widget library
ii  libxext6                      2:1.1.2-1  X11 miscellaneous extension librar
ii  libxmu6                       2:1.0.5-1  X11 miscellaneous utility library
ii  libxpm4                       1:3.5.8-1  X11 pixmap library
ii  libxt6                        1:1.0.7-1  X11 toolkit intrinsics library

seyon recommends no packages.

Versions of packages seyon suggests:
pn  ckermit                       <none>     (no description available)
ii  lrzsz                         0.12.21-5  Tools for zmodem/xmodem/ymodem fil

-- no debconf information
diff -uprN seyon-2.20c/SeSubsX.c seyon-2.20c_patched/SeSubsX.c
--- seyon-2.20c/SeSubsX.c	2010-08-20 15:43:52.000000000 +0800
+++ seyon-2.20c_patched/SeSubsX.c	2010-08-20 15:37:04.000000000 +0800
@@ -232,7 +232,7 @@ read_seyon_file(name, line)
 {
   FILE           *fp;
 
-  if ((fp = open_file(name, qres.defaultDirectory)) == NULL)
+  if ((fp = open_file(name, 0, qres.defaultDirectory)) == NULL)
     return False;
 
   ReadCommentedFile(fp, line);
diff -uprN seyon-2.20c/SeTrans.c seyon-2.20c_patched/SeTrans.c
--- seyon-2.20c/SeTrans.c	2010-08-20 15:43:52.000000000 +0800
+++ seyon-2.20c_patched/SeTrans.c	2010-08-20 15:37:24.000000000 +0800
@@ -187,7 +187,7 @@ ReadParseProtFile(fname, disItems)
   int             i,
                   n;
 
-  if ((fp = open_file(fname, qres.defaultDirectory)) == NULL)
+  if ((fp = open_file(fname, REG_BUF, qres.defaultDirectory)) == NULL)
     return -1;
 
   ReadCommentedFile(fp, rawItems);

Reply via email to