Changeset 126 for branches/samba-3.0/source/ndpsmb/smbwrp.c
- Timestamp:
- Apr 7, 2008, 9:33:39 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/ndpsmb/smbwrp.c
r124 r126 2 2 3 3 #include "smbwrp.h" 4 5 #ifndef DEBUG_PRINTF 6 #define debug_printf( ...) 7 #endif 4 8 5 9 static int … … 273 277 274 278 if (c_time) { 275 *c_time = convert_timespec_to_time_t(interpret_long_date(rdata+0)) - cli->serverzone;279 *c_time = convert_timespec_to_time_t(interpret_long_date(rdata+0)); 276 280 } 277 281 if (a_time) { 278 *a_time = convert_timespec_to_time_t(interpret_long_date(rdata+8)) - cli->serverzone;282 *a_time = convert_timespec_to_time_t(interpret_long_date(rdata+8)); 279 283 } 280 284 if (m_time) { 281 *m_time = convert_timespec_to_time_t(interpret_long_date(rdata+16)) - cli->serverzone;285 *m_time = convert_timespec_to_time_t(interpret_long_date(rdata+16)); 282 286 } 283 287 if (w_time) { 284 *w_time = convert_timespec_to_time_t(interpret_long_date(rdata+24)) - cli->serverzone;288 *w_time = convert_timespec_to_time_t(interpret_long_date(rdata+24)); 285 289 } 286 290 if (mode) { … … 344 348 345 349 if (c_time) { 346 *c_time = convert_timespec_to_time_t(interpret_long_date(rdata+0)) - cli->serverzone;350 *c_time = convert_timespec_to_time_t(interpret_long_date(rdata+0)); 347 351 } 348 352 if (a_time) { 349 *a_time = convert_timespec_to_time_t(interpret_long_date(rdata+8)) - cli->serverzone;353 *a_time = convert_timespec_to_time_t(interpret_long_date(rdata+8)); 350 354 } 351 355 if (m_time) { 352 *m_time = convert_timespec_to_time_t(interpret_long_date(rdata+16)) - cli->serverzone;356 *m_time = convert_timespec_to_time_t(interpret_long_date(rdata+16)); 353 357 } 354 358 if (w_time) { 355 *w_time = convert_timespec_to_time_t(interpret_long_date(rdata+24)) - cli->serverzone;359 *w_time = convert_timespec_to_time_t(interpret_long_date(rdata+24)); 356 360 } 357 361 if (mode) { … … 609 613 if (file->openattr || file->mtime) 610 614 { 611 debuglocal(4,"Set attr on close %s %08x %d %d\n", file->fname, file->openattr, file->mtime, file->mtime + get_time_zone(file->mtime));612 if (!cli_setatr(cli, file->fname, file->openattr, file->mtime + get_time_zone(file->mtime)))615 debuglocal(4,"Set attr on close %s %08x %d %d\n", file->fname, file->openattr, file->mtime, file->mtime); 616 if (!cli_setatr(cli, file->fname, file->openattr, file->mtime)) 613 617 { 614 618 debuglocal(4,"Set attr on close failed %d\n", os2cli_errno(cli)); … … 819 823 return EINVAL; 820 824 } 825 debug_printf( "smbwrp_getattr\n"); 821 826 debuglocal(4,"getattr %d %d <%s>\n", cli->capabilities & CAP_NOPATHINFO2, cli->capabilities & CAP_NT_SMBS, finfo->fname); 822 827 if (!(cli->capabilities & CAP_NOPATHINFO2) && … … 868 873 } 869 874 870 if (cli_getatr(cli, finfo->fname, (unsigned short *)&finfo->attr, (size_t *)&finfo->size, (time_t *)&finfo->mtime))875 if (cli_getatr(cli, finfo->fname, (unsigned short *)&finfo->attr, &finfo->size, (time_t *)&finfo->mtime)) 871 876 { 872 877 //debuglocal(2,("gotattr1 %08x <%s>\n", finfo->attr, finfo->fname)); … … 1036 1041 finfo->ctime = def_finfo.ctime_ts.tv_sec; 1037 1042 strncpy(finfo->fname, def_finfo.name, sizeof(finfo->fname) - 1); 1038 1043 debug_printf( "fname %s (serverzone %d, level %d)\n",finfo->fname, cli->serverzone, level); 1044 1039 1045 switch (level) { 1040 1046 case 1: /* OS/2 understands this */ … … 1090 1096 /* Offset zero is "create time", not "change time". */ 1091 1097 p += 8; 1092 finfo->atime = interpret_long_date(p).tv_sec - cli->serverzone;1098 finfo->atime = interpret_long_date(p).tv_sec; 1093 1099 p += 8; 1094 finfo->mtime = interpret_long_date(p).tv_sec - cli->serverzone;1100 finfo->mtime = interpret_long_date(p).tv_sec; 1095 1101 p += 8; 1096 finfo->ctime = interpret_long_date(p).tv_sec - cli->serverzone;1102 finfo->ctime = interpret_long_date(p).tv_sec; 1097 1103 p += 8; 1098 1104 finfo->size = IVAL2_TO_SMB_BIG_UINT(p,0); … … 1404 1410 } 1405 1411 debuglocal(1,"Filelist <%s> on master <%s> wgrp <%s> server <%s> share <%s> clidev <%s>\n", state->mask, srv->master, srv->workgroup, srv->server_name, srv->share_name, cli->dev); 1412 debug_printf( "Filelist <%s> on master <%s> wgrp <%s> server <%s> share <%s> clidev <%s>\n", state->mask, srv->master, srv->workgroup, srv->server_name, srv->share_name, cli->dev); 1406 1413 if (*srv->workgroup == 0 && *srv->server_name == 0) 1407 1414 {
Note:
See TracChangeset
for help on using the changeset viewer.