VirtualBox

Changeset 29549 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 17, 2010 2:12:48 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61690
Message:

Guest Control: Do not allow anonymous executions (with system rights).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r29516 r29549  
    6464{
    6565    RTPrintf("VBoxManage guestcontrol     execute <vmname>|<uuid>\n"
    66              "                            <path to program> [--arguments \"<arguments>\"]\n"
     66             "                            <path to program> --username <name> --password <password>\n"
     67             "                            [--arguments \"<arguments>\"]\n"
    6768             "                            [--environment \"<NAME>=<VALUE> [<NAME>=<VALUE>]\"]\n"
    68              "                            [--flags <flags>] [--timeout <msec>]\n"
    69              "                            [--username <name> [--password <password>]]\n"
     69             "                            [--flags <flags>] [--timeout <msec>]\n"             
    7070             "                            [--verbose] [--wait-for exit,stdout,stderr||]\n"
    7171             "\n");
     
    239239        return errorSyntax(USAGE_GUESTCONTROL, "Incorrect parameters");
    240240
    241     /* If a password was specified, check if we also got a user name. */
    242     if (   !Utf8Password.isEmpty()
    243         &&  Utf8UserName.isEmpty())
    244     {
     241    if (Utf8UserName.isEmpty())
    245242        return errorSyntax(USAGE_GUESTCONTROL,
    246                            "No user name for password specified!");
    247     }
     243                           "No user name specified!");
     244
     245    if (Utf8Password.isEmpty())
     246        return errorSyntax(USAGE_GUESTCONTROL,
     247                           "No password specified!");
    248248
    249249    /* lookup VM. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette