title: Open permission denied
body: <p>In C:</p>
  
  <pre><code>if( (opfd= open(fpath, O_CREAT | O_RDWR, 777))&lt;0) 
      {perror("open sys call");
      exit(1);}
  </code></pre>
  
  <p>then i write an array to this file (works fine)
  then <code>close(opfd);</code>
  when i iterate again and try to enter the same file name, it gives me this error "Permission denied" while i set the permissions to 777</p>