Ignore:
Timestamp:
Jun 25, 2013, 10:53:14 PM (11 years ago)
Author:
Bruno Cornec
Message:
  • Apply fixes to 3.1 tree so that at least mondo compiles again (but that branch probably doesn't work at all again).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/mondo/src/mondorestore/mondorestore.c

    r3147 r3161  
    12301230
    12311231    if (strcmp(outfile_fname, "/dev/null")) {
    1232         chown(outfile_fname, biggiestruct.properties.st_uid, biggiestruct.properties.st_gid);
     1232        if (chown(outfile_fname, biggiestruct.properties.st_uid, biggiestruct.properties.st_gid)) {
     1233            // FIXME
     1234        }
    12331235        chmod(outfile_fname, biggiestruct.properties.st_mode);
    12341236        ubuf->actime = biggiestruct.properties.st_atime;
     
    14751477    if (strcmp(outfile_fname, "/dev/null")) {
    14761478        chmod(outfile_fname, biggiestruct.properties.st_mode);
    1477         chown(outfile_fname, biggiestruct.properties.st_uid, biggiestruct.properties.st_gid);
     1479        if (chown(outfile_fname, biggiestruct.properties.st_uid, biggiestruct.properties.st_gid)) {
     1480            // FIXME
     1481        }
    14781482        ubuf->actime = biggiestruct.properties.st_atime;
    14791483        ubuf->modtime = biggiestruct.properties.st_mtime;
Note: See TracChangeset for help on using the changeset viewer.