Changeset 221 for branches/samba-3.3.x/source/utils/smbget.c
- Timestamp:
- May 24, 2009, 7:17:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/utils/smbget.c
r206 r221 195 195 196 196 if(chmod(relname, remotestat.st_mode) < 0) { 197 fprintf(stderr, "Unable to change mode of local dir %s to %o\n", relname, remotestat.st_mode); 197 fprintf(stderr, "Unable to change mode of local dir %s to %o\n", relname, 198 (unsigned int)remotestat.st_mode); 198 199 smbc_closedir(dirhandle); 199 200 return 0; … … 472 473 if(keep_permissions && !send_stdout) { 473 474 if(fchmod(localhandle, remotestat.st_mode) < 0) { 474 fprintf(stderr, "Unable to change mode of local file %s to %o\n", path, remotestat.st_mode); 475 fprintf(stderr, "Unable to change mode of local file %s to %o\n", path, 476 (unsigned int)remotestat.st_mode); 475 477 smbc_close(remotehandle); 476 478 close(localhandle); … … 488 490 char bs[100]; 489 491 human_readable(total_bytes, bs, sizeof(bs)); 490 if(!quiet)fprintf(stderr, "Downloaded %s in %lu seconds\n", bs, time(NULL) - total_start_time); 492 if(!quiet)fprintf(stderr, "Downloaded %s in %lu seconds\n", bs, 493 (unsigned long)(time(NULL) - total_start_time)); 491 494 exit(0); 492 495 }
Note:
See TracChangeset
for help on using the changeset viewer.