VirtualBox

Ignore:
Timestamp:
Nov 17, 2015 9:11:03 AM (9 years ago)
Author:
vboxsync
Message:

Additions/linux/sharedfolders: pass the share name as parameter to mount so that /proc/mounts shows it instead of 'none' (thanks DuPingping!)

File:
1 edited

Legend:

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

    r58143 r58717  
    483483     *       to keep this code here slick without having VbglR3.
    484484     */
    485     err = mount(NULL, mount_point, "vboxsf", flags, &mntinf);
     485    err = mount(host_name, mount_point, "vboxsf", flags, &mntinf);
    486486    if (err == -1 && errno == EPROTO)
    487487    {
     
    500500            strcpy(mntinf.name, host_name + cchCWD);
    501501        }
    502         err = mount(NULL, mount_point, "vboxsf", flags, &mntinf);
     502        err = mount(host_name, mount_point, "vboxsf", flags, &mntinf);
    503503    }
    504504    if (err == -1 && errno == EPROTO)
     
    512512        mntinf_old.gid = mntinf.gid;
    513513        mntinf_old.ttl = mntinf.ttl;
    514         err = mount(NULL, mount_point, "vboxsf", flags, &mntinf_old);
     514        err = mount(host_name, mount_point, "vboxsf", flags, &mntinf_old);
    515515    }
    516516    if (err)
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