X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=helper%2Fchecksum.c;h=2df42bc8580c4bcabb2261ff6607b79c7737fd16;hb=refs%2Ftags%2F3.4;hp=337134c66ac0399d007fffb91168caea882d85c7;hpb=0f89ba0654de234429042ffcc91c8a0de94ec98b;p=febootstrap.git diff --git a/helper/checksum.c b/helper/checksum.c index 337134c..2df42bc 100644 --- a/helper/checksum.c +++ b/helper/checksum.c @@ -65,11 +65,12 @@ checksum_end (void) static void checksum_file_stat (const char *filename, const struct stat *statbuf) { - /* Publically writable directories (ie. /tmp) don't have stable - * times. Since we only care about some attributes of directories - * in any case, we vary the output accordingly. + /* Publically writable directories (ie. /tmp) and special files + * don't have stable times. Since we only care about some + * attributes of directories and special files, we vary the output + * accordingly. */ - if (!S_ISDIR (statbuf->st_mode)) + if (S_ISREG (statbuf->st_mode)) fprintf (pp, "%s %ld %ld %d %d %ld %o\n", filename, (long) statbuf->st_ctime, (long) statbuf->st_mtime,