VirtualBox

Changeset 55614 in vbox for trunk/src


Ignore:
Timestamp:
May 3, 2015 4:25:24 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99987
Message:

Forgot to add the '-L' option to the vbox_stat invocation. Added '--' to the vbox_stat, vbox_mkdir, vbox_mktemp, and vbox_rm invocation so we don't get confused by file/dir names like '--version' and '-h'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r55613 r55614  
    733733                vrc = VERR_BUFFER_OVERFLOW;
    734734        }
     735        procInfo.mArguments.push_back("--"); /* '--version' is a valid directory name. */
    735736        procInfo.mArguments.push_back(strPath); /* The directory we want to create. */
    736737    }
     
    876877            procInfo.mArguments.push_back(strPath);
    877878        }
     879        procInfo.mArguments.push_back("--"); /* strTemplate could be '--help'. */
    878880        procInfo.mArguments.push_back(strTemplate);
    879881    }
     
    12701272    {
    12711273        procInfo.mArguments.push_back(Utf8Str("--machinereadable"));
     1274        procInfo.mArguments.push_back("--"); /* strPath could be '--help', which is a valid filename. */
    12721275        procInfo.mArguments.push_back(strPath); /* The file we want to remove. */
    12731276    }
     
    14371440        /* Construct arguments. */
    14381441        procInfo.mArguments.push_back(Utf8Str("--machinereadable"));
     1442        if (fFollowSymlinks)
     1443            procInfo.mArguments.push_back(Utf8Str("-L"));
     1444        procInfo.mArguments.push_back("--"); /* strPath could be '--help', which is a valid filename. */
    14391445        procInfo.mArguments.push_back(strPath);
    14401446    }
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