[uClibc 0001547]: popen(3) allows "rw" to be specified

bugs at busybox.net bugs at busybox.net
Sun Dec 30 20:25:36 UTC 2007


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1547 
====================================================================== 
Reported By:                chmeee
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1547
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             10-22-2007 08:01 PDT
Last Modified:              12-30-2007 12:25 PST
====================================================================== 
Summary:                    popen(3) allows "rw" to be specified
Description: 
Specifying "rw" as the mode to popen(3) succeeds, giving read access, but
should fail, as only one mode is permitted by the standard.  The attached
patch fixes this.
====================================================================== 

---------------------------------------------------------------------- 
 vapier - 12-30-07 12:25  
---------------------------------------------------------------------- 
the standard does not require it to fail.  please refer to:
http://www.opengroup.org/onlinepubs/009695399/functions/popen.html

1. If mode is r, ......
2. If mode is w, ......
3. If mode is any other value, the result is undefined.

sounds like we're compliant ;) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-22-07 08:01  chmeee         New Issue                                    
10-22-07 08:01  chmeee         Status                   new => assigned     
10-22-07 08:01  chmeee         Assigned To               => uClibc          
10-22-07 08:01  chmeee         File Added: popen.diff                       
12-30-07 12:25  vapier         Note Added: 0003314                          
12-30-07 12:25  vapier         Status                   assigned => closed  
12-30-07 12:25  vapier         Resolution               open => no change
required
======================================================================




More information about the uClibc-cvs mailing list