VirtualBox

Ignore:
Timestamp:
Mar 5, 2013 10:45:12 AM (12 years ago)
Author:
vboxsync
Message:

GA: Linux Shared folders: fix build for KERNEL>=3.5 when CONFIG_UIDGID_STRICT_TYPE_CHECKS is enabled.

File:
1 edited

Legend:

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

    r42880 r44923  
    145145    }
    146146
     147#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0)
     148    inode->i_uid = KUIDT_INIT(sf_g->uid);
     149    inode->i_gid = KGIDT_INIT(sf_g->gid);
     150#else
    147151    inode->i_uid = sf_g->uid;
    148152    inode->i_gid = sf_g->gid;
     153#endif
     154
    149155    inode->i_size = info->cbObject;
    150156#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19) && !defined(KERNEL_FC6)
Note: See TracChangeset for help on using the changeset viewer.

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