Changeset 58717 in vbox
- Timestamp:
- Nov 17, 2015 9:11:03 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 104145
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp
r58182 r58717 342 342 strcpy(mntinf.nls_name, "\0"); 343 343 344 int r = mount( NULL,344 int r = mount(pszShareName, 345 345 pszMountPoint, 346 346 "vboxsf", … … 403 403 strcpy(mntinf.name, pszMountPoint + cchCWD); 404 404 } 405 r = mount( NULL, pszMountPoint, "vboxsf", fFlags, &mntinf);405 r = mount(mntinf.name, pszMountPoint, "vboxsf", fFlags, &mntinf); 406 406 } 407 407 if (errno == EPROTO) … … 417 417 mntinf_old.gid = mntinf.gid; 418 418 mntinf_old.ttl = mntinf.ttl; 419 r = mount( NULL, pszMountPoint, "vboxsf", fFlags, &mntinf_old);419 r = mount(mntinf_old.name, pszMountPoint, "vboxsf", fFlags, &mntinf_old); 420 420 } 421 421 if (r == -1) /* Was there some error from one of the tries above? */ -
trunk/src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c
r58143 r58717 483 483 * to keep this code here slick without having VbglR3. 484 484 */ 485 err = mount( NULL, mount_point, "vboxsf", flags, &mntinf);485 err = mount(host_name, mount_point, "vboxsf", flags, &mntinf); 486 486 if (err == -1 && errno == EPROTO) 487 487 { … … 500 500 strcpy(mntinf.name, host_name + cchCWD); 501 501 } 502 err = mount( NULL, mount_point, "vboxsf", flags, &mntinf);502 err = mount(host_name, mount_point, "vboxsf", flags, &mntinf); 503 503 } 504 504 if (err == -1 && errno == EPROTO) … … 512 512 mntinf_old.gid = mntinf.gid; 513 513 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); 515 515 } 516 516 if (err)
Note:
See TracChangeset
for help on using the changeset viewer.