X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfc_skein.c;h=5d457deac828513156db13ced328d11feb6ef9e7;hb=630fb7d8dc740715cdc52114d736d64bf14f0798;hp=fe86c20de71b1c595aa15e5e2d489223d1766d71;hpb=a7a8ae5408eed270854e69adf40ccaf3a401f830;p=tfcrypt.git diff --git a/tfc_skein.c b/tfc_skein.c index fe86c20..5d457de 100644 --- a/tfc_skein.c +++ b/tfc_skein.c @@ -68,7 +68,9 @@ tfc_yesno skeinfd(void *hash, size_t bits, const void *key, int fd, tfc_fsize of if (readto == NOFSIZE) goto _fail; } if (offset != 0 && offset != NOFSIZE) { - if (lseek(fd, (off_t)offset, SEEK_SET) == -1) goto _fail; + if (lseek(fd, (off_t)offset, SEEK_SET) == -1) { + if (ignore_seek_errors == NO) goto _fail; + } } }