<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
I found another little bug, this time with the "fifo_mode" directive in
the ser.cfg file.&nbsp; Since the YACC/Bison config defines the directive as
a integer type, you can only use decimal integers.&nbsp; Therefore, config
lines such as "fifo_mode=0660" will be interpreted as "660" DECIMAL,
resulting in unexpected modes being set.&nbsp; If you use the decimal number
"432", the equivelant of&nbsp; octal "660" it sets modes as expected.<br>
<br>
Unless YACC/Bison/[F]Lex can be made to interpret the value as octal
(I'm no expert in these), you should probably change the type to string
and just use strtol(in,out,8) or strtol(in,out,0) (which lets the user
use decimal, or 0xHEX, or 0NNN octal in the ser.cfg file) in the code
somewhere.<br>
<br>
- Jim<br>
<br>
<br>
Andrei Pelinescu-Onciul wrote:<br>
<blockquote type="cite"
 cite="mid20031126235050.GB20341@fokus.fraunhofer.de">
  <pre wrap="">On Nov 26, 2003 at 15:03, Jim Burwell <a class="moz-txt-link-rfc2396E" href="mailto:jimb@jsbc.cc">&lt;jimb@jsbc.cc&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Ok.  I didn't know that SER had the ability to change the GID it runs 
under (and therefore change the group owner of the FIFO hopefully).  
This would solve the problem.  In my case I'd just set "group=serfifo".

HOWEVER, why I try this, I get: 

   {root@fs/pts/7}~# ser -P /var/run/ser.pid -dddd -g serfifo
   Segmentation fault
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Thanks. It seems I never tried group= myself :-)

It's fixed on the cvs (rel_0_8_11, rel_0_8_12 and HEAD), so either
update or apply the attacged patch.

Andrei
  </pre>
  <pre wrap="">
<hr width="90%" size="4">
Index: main.c
===================================================================
RCS file: /cvsroot/ser/sip_router/main.c,v
retrieving revision 1.168
diff -u -r1.168 main.c
--- main.c        2003/10/12 15:09:08        1.168
+++ main.c        2003/11/26 23:34:48
@@ -1523,7 +1523,7 @@
                 }
         }
         if (group){
-                gid=strtol(user, &amp;tmp, 10);
+                gid=strtol(group, &amp;tmp, 10);
                 if ((tmp==0) ||(*tmp)){
                         /* maybe it's a string */
                         gr_entry=getgrnam(group);
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="78">-- 
+---------------------------------------------------------------------------+
|         Jim Burwell - Sr. Systems/Network/Security Engineer, JSBC         |
+---------------------------------------------------------------------------+
| "I never let my schooling get in the way of my education." - Mark Twain   |
| "UNIX was never designed to keep people from doing stupid things, because |
|  that policy would also keep them from doing clever things." - Doug Gwyn  |
| "Cool is only three letters away from Fool" - Mike Muir, Suicyco          |
| "..Government in its best state is but a necessary evil; in its worst     |
|  state an intolerable one.." - Thomas Paine, "Common Sense" (1776)        |
+---------------------------------------------------------------------------+
|   Email:  <a class="moz-txt-link-abbreviated" href="mailto:jimb@jsbc.cc">jimb@jsbc.cc</a>                              ICQ UIN:  1695089     |
+---------------------------------------------------------------------------+
|  Reply problems ?  Turn off the "sign" function in email prog.  Blame MS. |
+---------------------------------------------------------------------------+
</pre>
</body>
</html>