[asterisk-bugs] [Asterisk 0013987]: [patch] struct ucred cred not needed on OpenBSD. Compile error

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Nov 29 08:42:53 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13987 
====================================================================== 
Reported By:                mvanbaak
Assigned To:                eliel
====================================================================== 
Project:                    Asterisk
Issue ID:                   13987
Category:                   Core/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-11-29 05:34 CST
Last Modified:              2008-11-29 08:42 CST
====================================================================== 
Summary:                    [patch] struct ucred cred not needed on OpenBSD.
Compile error
Description: 
With the new way to read the credentials, you forgot to move the struct
ucred cred and the len var to the #ifdef SO_PEERCRED.
Attached a patch that makes stuff compile on OpenBSD again.
====================================================================== 

---------------------------------------------------------------------- 
 (0095602) svnbot (reporter) - 2008-11-29 08:42
 http://bugs.digium.com/view.php?id=13987#c95602 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 159773

U   team/eliel/cli-permissions/main/asterisk.c

------------------------------------------------------------------------
r159773 | eliel | 2008-11-29 08:42:52 -0600 (Sat, 29 Nov 2008) | 9 lines

Fix a compilation warning in OpenBSD.

(closes issue http://bugs.digium.com/view.php?id=13987)
Reported by: mvanbaak
Patches:
    2008112900_clipermissions-readcredentials-obsd.diff.txt
    (with minor changes by me)
uploaded by mvanbaak (license 7)

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

http://svn.digium.com/view/asterisk?view=rev&revision=159773 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-29 08:42 svnbot         Note Added: 0095602                          
======================================================================




More information about the asterisk-bugs mailing list