Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_file.c

    r1393bbb r3e6a98c5  
    177177                 * endpoint FS and drop our reference to the underlying VFS node.
    178178                 */
    179                 if (file->open_read || file->open_write) {
    180                         rc = vfs_file_close_remote(file);
    181                 }
     179                rc = vfs_file_close_remote(file);
    182180                vfs_node_delref(file->node);
    183181                free(file);
     
    395393         */
    396394        acceptor_file->node = donor_file->node;
    397         acceptor_file->permissions = donor_file->permissions;
    398        
    399         // TODO: The file should not inherit its open status, but clients depend on this.
     395        acceptor_file->append = donor_file->append;
    400396        acceptor_file->pos = donor_file->pos;
    401         acceptor_file->append = donor_file->append;
    402         acceptor_file->open_read = donor_file->open_read;
    403         acceptor_file->open_write = donor_file->open_write;
    404397
    405398out:
Note: See TracChangeset for help on using the changeset viewer.