VirtualBox

Changeset 42728 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 9, 2012 7:16:05 PM (12 years ago)
Author:
vboxsync
Message:

Additions/common/VBoxService: vbox_mkdir adjustments.

File:
1 edited

Legend:

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

    r42727 r42728  
    138138             "  mktemp <general options>   [--directory|-d] [--secure|-s]\n"
    139139             "                             [--mode|-m <mode>] <template>\n"
    140              "  mkdir <general options>    [--mode|-m] [--parents|-p]\n"
     140             "  mkdir <general options>    [--mode|-m <mode>] [--parents|-p]\n"
    141141             "                             [--verbose|-v] <directory>...\n"
    142142             "  stat <general options>     [--file-system|-f]\n"
     
    13311331    "                                         <directory>...\n\n"
    13321332    "Options:\n\n"
    1333     "  [--mode=<mode>|-m <mode>]  The file mode to set (chmod) on the created\n"
     1333    "  [--mode|-m <mode>]         The file mode to set (chmod) on the created\n"
    13341334    "                             directories.  Default: a=rwx & umask.\n"
    13351335    "  [--parents|-p]             Create parent directories as needed, no\n"
     
    13781378
    13791379            case 'm':
    1380                 rc = RTStrToUInt32Ex(ValueUnion.psz, NULL, 8 /* Base */, &fDirMode);
    1381                 if (RT_FAILURE(rc)) /* Only octet based values supported right now! */
    1382                     return RTMsgErrorExit(RTEXITCODE_SYNTAX,
    1383                                           "Mode flag strings not implemented yet! Use octal numbers instead. (%s)\n",
    1384                                           ValueUnion.psz);
     1380                rc = vboxServiceToolboxParseMode(ValueUnion.psz, &fDirMode);
     1381                if (RT_FAILURE(rc))
     1382                    return RTEXITCODE_SYNTAX;
    13851383#ifndef RT_OS_WINDOWS
    13861384                umask(0); /* RTDirCreate workaround */
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