sbin/fsck_msdosfs: Bring in freebsd/freebsd@9d029ca4 (fix build)
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 14 Sep 2019 21:53:15 +0000 (06:53 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 14 Sep 2019 22:57:21 +0000 (07:57 +0900)
sbin/fsck_msdosfs/dir.c

index ea4693c..b13c35b 100644 (file)
@@ -480,7 +480,7 @@ check_subdirectory(int f, struct bootblock *boot, struct dosDirEntry *dir)
 
        off *= boot->bpbBytesPerSec;
        if (lseek(f, off, SEEK_SET) != off ||
-           read(f, buf, boot->bpbBytesPerSec) != boot->bpbBytesPerSec) {
+           read(f, buf, boot->bpbBytesPerSec) != (ssize_t)boot->bpbBytesPerSec) {
                perr("Unable to read directory");
                free(buf);
                return FSFATAL;