Changeset 521 for trunk/client/src/smbwrp.c
- Timestamp:
- Jan 14, 2011, 12:28:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/src/smbwrp.c
r516 r521 195 195 } 196 196 */ 197 return 0; 198 199 } 200 201 void smbwrp_initthread(void) 202 { 197 203 /* 198 204 * Block SIGPIPE (from lib/util_sock.c: write()) … … 200 206 */ 201 207 BlockSignals(True, SIGPIPE); 202 203 return 0;204 205 208 } 206 209 … … 821 824 } 822 825 823 debuglocal(4,"Setting on <%s> attr %04x, time %lu/%lu\n", finfo->fname, finfo->attr, finfo->mtime, finfo->mtime + get_time_zone(finfo->mtime)); 824 if (!cli_setatr(cli, finfo->fname, finfo->attr, finfo->mtime + (finfo->mtime == 0 ? 0 : get_time_zone(finfo->mtime))) 826 debuglocal(4,"Setting on <%s> attr %04x, time %lu (timezone /%lu\n", finfo->fname, finfo->attr, finfo->mtime, finfo->mtime + get_time_zone(finfo->mtime)); 827 // we already have gmt time, so no need to add timezone 828 // if (!cli_setatr(cli, finfo->fname, finfo->attr, finfo->mtime + (finfo->mtime == 0 ? 0 : get_time_zone(finfo->mtime))) 829 if (!cli_setatr(cli, finfo->fname, finfo->attr, finfo->mtime) 825 830 && !cli_setatr(cli, finfo->fname, finfo->attr, 0)) 826 831 {
Note:
See TracChangeset
for help on using the changeset viewer.