VirtualBox

Changeset 37833 in vbox for trunk/src/VBox/Additions/solaris


Ignore:
Timestamp:
Jul 8, 2011 10:16:08 AM (14 years ago)
Author:
vboxsync
Message:

Additions/Solaris/SharedFolders/vboxfs_mount: small cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_mount.c

    r33550 r37833  
    4242*******************************************************************************/
    4343static char g_achOptBuf[MAX_MNTOPT_STR] = { '\0', };
    44 static int g_cbOptBuf = 0;
    4544static const int g_RetErr = 33;
    4645static const int g_RetMagic = 2;
     
    6261           "     uid=UID            set the default file owner user id to UID\n"
    6362           "     gid=GID            set the default file owner group id to GID\n"
    64            "     stat_ttl=TTL       set the \"time to live\" (in ms) for the stat caches (default %d)\n"
     63           "     stat_ttl=TTL       set the \"time to live\" (in ms) for the stat caches (default %d)\n", DEF_STAT_TTL_MS);
     64    fprintf(stderr,
    6565           "     fsync              honor fsync calls instead of ignoring them\n"
    6666           "     ttl=TTL            set the \"time to live\" to TID for the dentry\n"
    6767           "     iocharset CHARSET  use the character set CHARSET for i/o operations (default utf8)\n"
    68            "     convertcp CHARSET  convert the shared folder name from the character set CHARSET to utf8\n\n", DEF_STAT_TTL_MS);
    69     fprintf(stderr, "Less common used options:\n"
     68           "     convertcp CHARSET  convert the shared folder name from the character set CHARSET to utf8\n\n"
     69          "Less common used options:\n"
    7070           "     noexec,exec,nodev,dev,nosuid,suid\n");
    7171    exit(1);
     
    129129                    return g_RetMagic;
    130130                }
    131                 g_cbOptBuf = strlen(g_achOptBuf);
    132131                break;
    133132            }
     
    150149    pszMount = argv[argc - 1];
    151150
    152     rc = mount(pszSpecial, pszMount, mntFlags | MS_OPTIONSTR, DEVICE_NAME, NULL, 0, g_achOptBuf, MAX_MNTOPT_STR);
     151    rc = mount(pszSpecial, pszMount, mntFlags | MS_OPTIONSTR, DEVICE_NAME, NULL, 0, g_achOptBuf, sizeof(g_achOptBuf));
    153152    if (rc)
    154153    {
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