Ignore:
File:
1 edited

Legend:

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

    r3e6a98c5 r1393bbb  
    177177                 * endpoint FS and drop our reference to the underlying VFS node.
    178178                 */
    179                 rc = vfs_file_close_remote(file);
     179                if (file->open_read || file->open_write) {
     180                        rc = vfs_file_close_remote(file);
     181                }
    180182                vfs_node_delref(file->node);
    181183                free(file);
     
    393395         */
    394396        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.
     400        acceptor_file->pos = donor_file->pos;
    395401        acceptor_file->append = donor_file->append;
    396         acceptor_file->pos = donor_file->pos;
     402        acceptor_file->open_read = donor_file->open_read;
     403        acceptor_file->open_write = donor_file->open_write;
    397404
    398405out:
Note: See TracChangeset for help on using the changeset viewer.