Changeset 520 for branches/client-2.0/src/smbwrp.c
- Timestamp:
- Jan 14, 2011, 11:58:49 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-2.0/src/smbwrp.c
r515 r520 178 178 } 179 179 */ 180 return 0; 181 182 } 183 184 void smbwrp_initthread(void) 185 { 180 186 /* 181 187 * Block SIGPIPE (from lib/util_sock.c: write()) … … 183 189 */ 184 190 BlockSignals(True, SIGPIPE); 185 186 return 0;187 188 191 } 189 192 … … 794 797 } 795 798 796 debuglocal(4,"Setting on <%s> attr %04x, time %lu/%lu\n", finfo->fname, finfo->attr, finfo->mtime, finfo->mtime + get_time_zone(finfo->mtime)); 797 if (!cli_setatr(cli, finfo->fname, finfo->attr, finfo->mtime + (finfo->mtime == 0 ? 0 : get_time_zone(finfo->mtime))) 799 debuglocal(4,"Setting on <%s> attr %04x, time %lu (timezone%lu)\n", finfo->fname, finfo->attr, finfo->mtime, get_time_zone(finfo->mtime)); 800 // we already have gmt time, so no need to add timezone 801 // if (!cli_setatr(cli, finfo->fname, finfo->attr, finfo->mtime + (finfo->mtime == 0 ? 0 : get_time_zone(finfo->mtime))) 802 if (!cli_setatr(cli, finfo->fname, finfo->attr, finfo->mtime) 798 803 && !cli_setatr(cli, finfo->fname, finfo->attr, 0)) 799 804 {
Note:
See TracChangeset
for help on using the changeset viewer.