Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/utils/smbget.c

    r206 r221  
    195195               
    196196                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);
    198199                        smbc_closedir(dirhandle);
    199200                        return 0;
     
    472473        if(keep_permissions && !send_stdout) {
    473474                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);
    475477                        smbc_close(remotehandle);
    476478                        close(localhandle);
     
    488490        char bs[100];
    489491        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));
    491494        exit(0);
    492495}
Note: See TracChangeset for help on using the changeset viewer.