VirtualBox

Changeset 32704 in vbox for trunk/src


Ignore:
Timestamp:
Sep 23, 2010 6:54:21 AM (14 years ago)
Author:
vboxsync
Message:

VBoxServiceAutoMount: cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp

    r31355 r32704  
    4141#include "../../linux/sharedfolders/vbsfmount.h"
    4242RT_C_DECLS_END
     43
     44#ifdef RT_OS_SOLARIS
     45# define AUTO_MOUNT_POINT       "/mnt/%s%s"
     46#else
     47# define AUTO_MOUNT_POINT       "/media/%s%s"
     48#endif
    4349
    4450/*******************************************************************************
     
    283289
    284290                            char *pszMountPoint = NULL;
    285     #ifdef RT_OS_SOLARIS
    286                             if (   RTStrAPrintf(&pszMountPoint, "/mnt/%s%s", pszSharePrefix, pszShareName) > 0
    287     #else
    288                             if (   RTStrAPrintf(&pszMountPoint, "/media/%s%s", pszSharePrefix, pszShareName) > 0
    289     #endif
     291                            if (   RTStrAPrintf(&pszMountPoint, AUTO_MOUNT_POINT, pszSharePrefix, pszShareName) > 0
    290292                                && pszMountPoint)
    291293                            {
     
    327329                                             paMappings[i].u32Root, rc);
    328330                    } /* for cMappings. */
    329     #if 0
     331#if 0
    330332                }
    331     #endif
     333#endif
    332334                RTStrFree(pszSharePrefix);
    333335            } /* Mount prefix. */
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