VirtualBox

Changeset 32700 in vbox


Ignore:
Timestamp:
Sep 22, 2010 3:08:17 PM (14 years ago)
Author:
vboxsync
Message:

Shared folder/Linux: properly handle VERR_INVALID_NAME; Windows hosts will return this error code for names like 'foo*' which is a perfectly valid name for a Posix guest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r32431 r32700  
    158158             path->String.utf8, params.CreateFlags));
    159159    rc = vboxCallCreate(&client_handle, &sf_g->map, path, &params);
     160    if (rc == VERR_INVALID_NAME)
     161    {
     162        /* this can happen for names like 'foo*' on a Windows host */
     163        return -ENOENT;
     164    }
    160165    if (RT_FAILURE(rc))
    161166    {
     
    164169        return -EPROTO;
    165170    }
    166 
    167171    if (params.Result != SHFL_FILE_EXISTS)
    168172    {
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