VirtualBox

Changeset 6103 in vbox


Ignore:
Timestamp:
Dec 17, 2007 12:23:57 PM (17 years ago)
Author:
vboxsync
Message:

VBoxManage: Temporarily disabled the settings update function (that is based on the to-be-removed CFGLDR). Will be remplemented using libxslt when needed.

File:
1 edited

Legend:

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

    r5999 r6103  
    3232#include <VBox/com/VirtualBox.h>
    3333
    34 #define CFGLDR_HAVE_COM
    35 #include <VBox/cfgldr.h>
     34/// @todo later, when the settings file update funciton is reimplemented using
     35/// libxslt (search for CFGLDR to find related parts of code below)
     36// #include <VBox/settings.h>
    3637
    3738#include <stdlib.h>
     
    32653266                    {
    32663267                        size_t cbRead = 0;
    3267                         size_t cbToRead = cbFile - offFile >= cbBuffer ? cbBuffer : cbFile - offFile;
     3268                        size_t cbToRead = cbFile - offFile >= (uint64_t) cbBuffer ?
     3269                            cbBuffer : (size_t) (cbFile - offFile);
    32683270                        rc = RTFileRead(File, pvBuf, cbToRead, &cbRead);
    32693271                        if (VBOX_FAILURE(rc) || !cbRead)
     
    72517253    RTPrintf ("%s\n", filePath);
    72527254
     7255/// @todo later, when the settings file update funciton is reimplemented using
     7256/// libxslt (search for CFGLDR to find related parts of code below). Note that
     7257/// it doesn't make sense to enable this code since CFGLDR is no more
     7258/// available.
     7259#if 0
     7260
    72537261    CFGHANDLE config = 0;
    72547262    char *errMsg = NULL;
     
    73207328
    73217329    return vrc;
     7330
     7331#else
     7332
     7333    RTPrintf ("Error converting settings file '%s': "
     7334              "THE FUNCTION IS TEMPORARILY DISABLED!\n");
     7335    return 1;
     7336
     7337#endif
    73227338}
    73237339
     
    74067422            else
    74077423            {
    7408                 return errorSyntax(USAGE_SETPROPERTY, "Invalid parameter '%s'", Utf8Str(argv[i]).raw());
     7424                return errorSyntax(USAGE_UPDATESETTINGS, "Invalid parameter '%s'", Utf8Str(argv[i]).raw());
    74097425            }
    74107426        }
    74117427        else
    74127428        {
    7413             return errorSyntax(USAGE_SETPROPERTY, "Invalid parameter '%s'", Utf8Str(argv[i]).raw());
     7429            return errorSyntax(USAGE_UPDATESETTINGS, "Invalid parameter '%s'", Utf8Str(argv[i]).raw());
    74147430        }
    74157431    }
     
    74197435        mode = nobackup ? HUSPD_ApplyNoBackup : HUSPD_Apply;
    74207436
     7437/// @todo later, when the settings file update funciton is reimplemented using
     7438/// libxslt (search for CFGLDR to find related parts of code below). Note that
     7439/// it doesn't make sense to enable this code since CFGLDR is no more
     7440/// available.
     7441#if 0
     7442
    74217443    int vrc = CFGLDRInitialize();
    74227444    if (VBOX_FAILURE (vrc))
     
    74727494
    74737495    return VBOX_SUCCESS (vrc) ? 0 : 1;
     7496
     7497#else
     7498
     7499    NOREF (mode);
     7500
     7501    RTPrintf ("THE SETTINGS FILE UPDATE FUNCTION IS TEMPORARILY DISABLED!\n");
     7502    return 1;
     7503
     7504
     7505#endif
    74747506}
    74757507
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