Changeset 127

Show
Ignore:
Timestamp:
04/07/08 10:20:26 (8 months ago)
Author:
ydario
Message:

Allow different return codes between ioctl and plugin. See ticket:47.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/ndpsmb/ndpsmb.c

    r126 r127  
    21772177    if (in && insize > 4096) 
    21782178    { 
    2179         sprintf (in, "SAMBA IOCTL function = %d, parms [%s] insize = %d, *poutlen = %d", function, in, insize, *poutlen); 
    2180         *poutlen = insize; 
    2181         return NO_ERROR; 
     2179        char out[4096]; 
     2180        sprintf (out, "SAMBA IOCTL function = %d, parms [%s] insize = %d, *poutlen = %d", function, in, insize, *poutlen); 
     2181        *poutlen = strlen(out); 
     2182        strcpy (in, out); 
     2183        return NO_ERROR; 
    21822184    } 
    21832185