VirtualBox

Changeset 29147 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
May 6, 2010 12:19:54 PM (15 years ago)
Author:
vboxsync
Message:

Additions/SharedFolders/Solaris: Pass 0 as Index to directory listing and some cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_prov.c

    r29074 r29147  
    326326        SHFLSTRING *str;
    327327        int size;
    328         sfp_file_t *newfp;
    329328
    330329        /*
     
    633632        sfp_file_t *fp;
    634633        void *buff_start = NULL;
    635         char **curr_b;
    636         char *buff_end;
    637634        size_t buff_size;
    638635        static char infobuff[2 * MAXNAMELEN];   /* not on stack!! */
     
    680677                numbytes = sizeof (infobuff);
    681678                error = vboxCallDirInfo(&vbox_client, &fp->map, fp->handle,
    682                     mask_str, SHFL_LIST_RETURN_ONE, cnt, &numbytes, info,
     679                    mask_str, SHFL_LIST_RETURN_ONE, 0, &numbytes, info,
    683680                    &justone);
    684681                if (error == VERR_NO_MORE_FILES) {
    685682                        break;
    686683                }
    687                 if (error == VERR_NO_TRANSLATION) {
     684                else if (error == VERR_NO_TRANSLATION) {
    688685                        continue;       /* ?? just skip this one */
    689686                }
    690                 if (error != VINF_SUCCESS || justone != 1) {
     687                else if (error != VINF_SUCCESS || justone != 1) {
    691688                        error = EINVAL;
    692689                        goto done;
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