VirtualBox

Ignore:
Timestamp:
May 25, 2012 7:52:59 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78174
Message:

Additions/SharedFolders: better error handling of VbglR3SharedFolderGetMappings()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp

    r40128 r41443  
    441441                        {
    442442                            0,                     /* uid */
    443                             grp_vboxsf->gr_gid,    /* gid */
     443                            (int)grp_vboxsf->gr_gid, /* gid */
    444444                            0,                     /* ttl */
    445445                            0770,                  /* dmode, owner and group "vboxsf" have full access */
     
    530530        VbglR3SharedFolderFreeMappings(paMappings);
    531531    }
     532    else if (RT_FAILURE(rc))
     533        VBoxServiceError("VBoxServiceAutoMountWorker: Error while getting the shared folder mappings, rc = %Rrc\n", rc);
    532534    else
    533     {
    534         if (RT_FAILURE(rc))
    535             VBoxServiceError("VBoxServiceAutoMountWorker: Error while getting the shared folder mappings, rc = %Rrc\n", rc);
    536         else if (!cMappings)
    537             VBoxServiceVerbose(3, "VBoxServiceAutoMountWorker: No shared folder mappings fouund\n");
    538     }
     535        VBoxServiceVerbose(3, "VBoxServiceAutoMountWorker: No shared folder mappings found\n");
    539536
    540537    /*
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