[asterisk-bugs] [Zaptel 0010505]: fxotune.c:827: error: size of array '__open_missing_mode' is negative

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 7 13:14:58 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10505 
====================================================================== 
Reported By:                thimm
Assigned To:                tzafrir
====================================================================== 
Project:                    Zaptel
Issue ID:                   10505
Category:                   Utilities
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Zaptel Version:             1.4.4  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             08-20-2007 21:12 CDT
Last Modified:              06-07-2008 13:14 CDT
====================================================================== 
Summary:                    fxotune.c:827: error: size of array
'__open_missing_mode' is negative
Description: 
from open(2)
       mode must be specified when O_CREAT is in the  flags,  and  is 
ignored
       otherwise.

Recent glibc like the one to be shipped with F8 changed open usage in two
ways: first it needs to be treated as a macro (as defined in POSIX) and
secondly the mode is mandatory for O_CREAT (it was random if missing until
now)


====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-07-08 13:14  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 2916

_U  trunk/
U   trunk/fxotune.c
U   trunk/patgen.c
U   trunk/patlooptest.c
U   trunk/pattest.c

------------------------------------------------------------------------
r2916 | tzafrir | 2008-06-07 13:14:56 -0500 (Sat, 07 Jun 2008) | 13 lines

* Add an explicit mode to the callto open (the default one that is used
  anyway).
* Clarify error message.
* Remove the mode parameter when opening a zap device (it is ignored
  anyway). Fix patgen's usage message while we're there.

closes http://bugs.digium.com/view.php?id=10505 on Zaptel trunk.

Merged revisions 2914 via svnmerge from 
https://origsvn.digium.com/svn/zaptel/branches/1.2
Merged revisions 2915 via svnmerge from 
https://origsvn.digium.com/svn/zaptel/branches/1.4

------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=2916 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 13:14  svnbot         Note Added: 0088316                          
======================================================================




More information about the asterisk-bugs mailing list