VirtualBox

Changeset 97409 in vbox


Ignore:
Timestamp:
Nov 5, 2022 11:19:12 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154414
Message:

Main/GuestCtrlPrivate.cpp: Don't use doxygen-style comments inside function for non-doxygen commenting (doxgyen got confused by non-html tags). Added @todo about confusing code in GuestPath::Translate wrt 'escape sequnces' in paths. bugref:10286

File:
1 edited

Legend:

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

    r97399 r97409  
    17231723 */
    17241724/* static */
    1725 int GuestPath::BuildDestinationPath(const Utf8Str &strSrcPath, PathStyle_T enmSrcPathStyle, Utf8Str &strDstPath, PathStyle_T enmDstPathStyle)
    1726 {
    1727     /**
     1725int GuestPath::BuildDestinationPath(const Utf8Str &strSrcPath, PathStyle_T enmSrcPathStyle,
     1726                                    Utf8Str &strDstPath, PathStyle_T enmDstPathStyle)
     1727{
     1728    /*
    17281729     * Rules:
    17291730     *
     
    17351736     */
    17361737    const char *pszSrcName = RTPathFilenameEx(strSrcPath.c_str(),
    1737                                                  enmSrcPathStyle == PathStyle_DOS
     1738                                                enmSrcPathStyle == PathStyle_DOS
    17381739                                              ? RTPATH_STR_F_STYLE_DOS : RTPATH_STR_F_STYLE_UNIX);
    17391740
     
    18111812                 * however, on DOS "\" is a path separator.
    18121813                 *
    1813                  * See @bugref{21095}.
     1814                 * See @ticketref{21095}.
     1815                 */
     1816                /** @todo r=bird: Seeing that callers like GuestSessionTaskCopyFrom::Run() has
     1817                 * passed strPath to RTPathQueryInfoEx() prior to calling this function, I don't
     1818                 * get the comments a bout escape sequence stuff here.
     1819                 *
     1820                 * "\" ("\\" in C/C++) is not an escape sequence on unix unless you're in a
     1821                 * typical unix shell like bash.  It's just a filename character that doesn't
     1822                 * get interpreted as anything special by the kernel (unlike '/' and '\0' (C/C++
     1823                 * encoding)).
     1824                 *
     1825                 * "\ " (or "\\ " in C/C++) does not mark a single space in a path component, it
     1826                 * signifies two characters, a backslash and a space, neither with any special
     1827                 * meaning to a UNIX host.
    18141828                 */
    18151829                else if (psz[off] == '\\')
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