Changeset 879 for trunk/server/source3


Ignore:
Timestamp:
May 8, 2015, 7:01:59 PM (10 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.6: small change for the ndpsmb client

Location:
trunk/server/source3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/include/client.h

    r745 r879  
    160160        struct timespec atime_ts;
    161161        struct timespec ctime_ts;
     162#ifdef __OS2__
     163        int easize;
     164#endif
    162165        char *name;
    163166        char short_name[13*3]; /* the *3 is to cope with multi-byte */
  • trunk/server/source3/libsmb/clilist.c

    r751 r879  
    2828****************************************************************************/
    2929
     30#ifndef __OS2__
    3031static size_t calc_next_entry_offset(const char *base, const char *pdata_end)
     32#else
     33size_t calc_next_entry_offset(const char *base, const char *pdata_end)
     34#endif
    3135{
    3236        size_t next_entry_offset = (size_t)IVAL(base,0);
     
    8892                        p += 27;
    8993                        p += align_string(base_ptr, p, 0);
     94#ifdef __OS2__
     95                        finfo->easize = -1;
     96#endif
    9097
    9198                        /* We can safely use len here (which is required by OS/2)
     
    134141                        finfo->size = IVAL(p,16);
    135142                        finfo->mode = CVAL(p,24);
     143#ifdef __OS2__
     144                        finfo->easize = IVAL(p,26);
     145#endif
    136146                        len = CVAL(p, 30);
    137147                        p += 31;
     
    183193                        namelen = IVAL(p,0);
    184194                        p += 4;
     195#ifdef __OS2__
     196                        finfo->easize = IVAL(p,0);
     197#endif
    185198                        p += 4; /* EA size */
    186199                        slen = SVAL(p, 0);
     
    190203                        }
    191204                        p += 2;
     205#ifndef __OS2__
    192206                        {
    193207                                /* stupid NT bugs. grr */
     
    198212                                            slen, flags);
    199213                        }
     214#endif
    200215                        p += 24; /* short name? */
    201216                        if (p + namelen < p || p + namelen > pdata_end) {
     
    218233                           copy it here. */
    219234
     235#ifndef __OS2__
    220236                        if (p_last_name_raw) {
    221237                                *p_last_name_raw = data_blob(NULL, namelen+2);
     
    223239                                SSVAL(p_last_name_raw->data, namelen, 0);
    224240                        }
     241#endif
    225242                        return calc_next_entry_offset(base, pdata_end);
    226243                }
  • trunk/server/source3/libsmb/libsmb_dir.c

    r745 r879  
    254254}
    255255
     256#ifndef __OS2__
    256257static int
     258#else
     259int
     260#endif
    257261net_share_enum_rpc(struct cli_state *cli,
    258262                   void (*fn)(const char *name,
Note: See TracChangeset for help on using the changeset viewer.