VirtualBox

Changeset 77062 in vbox


Ignore:
Timestamp:
Jan 30, 2019 7:57:58 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128508
Message:

linux/vboxsf/utils.c: Fixed sf_setattr regression and f_flags version check copy&pasty. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r77054 r77062  
    421421        }
    422422# else
    423         memcpy(&pReq->Create.StrPath, sf_i->path, sf_i->path->u16Size);
     423        memcpy(&pReq->Create.StrPath, sf_i->path, SHFLSTRING_HEADER_SIZE + sf_i->path->u16Size);
    424424        vrc = VbglR0SfHostReqCreate(sf_g->map.root, &pReq->Create);
    425425        if (RT_SUCCESS(vrc)) {
     
    10031003                        stat->f_fsid.val[1] = 0;
    10041004                        stat->f_namelen = 255;
    1005 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 73)
     1005#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
    10061006                        stat->f_flags = 0; /* not valid */
    10071007#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette