<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12449</bug_id>
          
          <creation_ts>2017-12-22 23:29:03 +0000</creation_ts>
          <short_desc>mkostemp() not implemented</short_desc>
          <delta_ts>2018-03-15 08:02:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Pseudo</product>
          <component>pseudo</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Tollerton">rich.tollerton</reporter>
          <assigned_to name="Seebs">seebs</assigned_to>
          <cc>juro.bystricky</cc>
    
    <cc>ross.burton</cc>
    
    <cc>stephano</cc>
    
    <cc>yp.pseudo.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78825</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Tollerton">rich.tollerton</who>
    <bug_when>2017-12-22 23:29:03 +0000</bug_when>
    <thetext>pseudo is intercepting mkstemp() but not mkostemp(). This causes permissions for coreutils `sed -i` to break, and probably a couple of other build-related commands too.

In principle, any function which glibc implements under the hood as __gen_tempname() probably needs to get implemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79595</commentid>
    <comment_count>1</comment_count>
    <who name="Seebs">seebs</who>
    <bug_when>2018-02-26 19:02:40 +0000</bug_when>
    <thetext>I wonder if we could just intercept __gen_tempname()? But yes, the mkostemp() family probably needs to get added. Doesn&apos;t look like anything fancy.

In my defense, I&apos;m pretty sure everything even similar to mkstemp() should never be used in the first place. I&apos;ll try to get these added.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79610</commentid>
    <comment_count>2</comment_count>
    <who name="Seebs">seebs</who>
    <bug_when>2018-02-26 20:48:33 +0000</bug_when>
    <thetext>Have implemented the family of related mk*temp* functions and pushed changes to master for experimentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79829</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-03-15 08:02:22 +0000</bug_when>
    <thetext>The functions were added to pseudo in sha d7c31a25e4b02af0c64e6be0b4b0a9ac4ffc9da2, and oe-core upgraded to that sha in 7c3df6782bbd5b623dcb6ee8a9bc914926640cdd.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>