Changeset 55612 in vbox for trunk/src/VBox/Additions
- Timestamp:
- May 3, 2015 2:09:03 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99985
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceToolBox.cpp
r44863 r55612 1520 1520 bool fVerbose = false; 1521 1521 uint32_t fOutputFlags = VBOXSERVICETOOLBOXOUTPUTFLAG_LONG; /* Use long mode by default. */ 1522 uint32_t fQueryInfoFlags = RTPATH_F_ON_LINK; 1522 1523 1523 1524 /* Init file list. */ … … 1532 1533 { 1533 1534 case 'f': 1534 case 'L':1535 1535 RTMsgError("Sorry, option '%s' is not implemented yet!\n", ValueUnion.pDef->pszLong); 1536 1536 rc = VERR_INVALID_PARAMETER; 1537 break; 1538 1539 case 'L': 1540 fQueryInfoFlags &= ~RTPATH_F_ON_LINK; 1541 fQueryInfoFlags |= RTPATH_F_FOLLOW_LINK; 1537 1542 break; 1538 1543 … … 1556 1561 case VINF_GETOPT_NOT_OPTION: 1557 1562 { 1563 /** @todo r=bird: The whole fileList is unecessary because you're using 1564 * RTGETOPTINIT_FLAGS_OPTS_FIRST. You can obviously do the processing right 1565 * here, but you could also just drop down and rewind GetState.iNext by one and 1566 * continue there. */ 1567 1558 1568 /* Add file(s) to buffer. This enables processing multiple files 1559 1569 * at once. … … 1585 1595 { 1586 1596 RTFSOBJINFO objInfo; 1587 int rc2 = RTPathQueryInfoEx(pNodeIt->pszName, &objInfo, 1588 RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK /* @todo Follow link? */); 1597 int rc2 = RTPathQueryInfoEx(pNodeIt->pszName, &objInfo, RTFSOBJATTRADD_UNIX, fQueryInfoFlags); 1589 1598 if (RT_FAILURE(rc2)) 1590 1599 { 1600 /** @todo r=bird: You can get a number of other errors here, like access denied. */ 1591 1601 if (!(fOutputFlags & VBOXSERVICETOOLBOXOUTPUTFLAG_PARSEABLE)) 1592 RTMsgError("Cannot stat for '%s': No such file or directory \n",1593 pNodeIt->pszName );1602 RTMsgError("Cannot stat for '%s': No such file or directory (%Rrc)\n", 1603 pNodeIt->pszName, rc); 1594 1604 rc = VERR_FILE_NOT_FOUND; 1595 1605 /* Do not break here -- process every element in the list
Note:
See TracChangeset
for help on using the changeset viewer.