Milan Broz wrote: > Ludwig Nussel wrote: > > Allows keyscripts that pipe into cryptsetup to quit due to e.g. a > > timeout or user pressing ^D. > > > @@ -490,6 +490,8 @@ void get_key(char *prompt, char **key, unsigned int *passLen, int key_size, > > } > > if(key_file) > > close(fd); > > + if(!i) // we didn't read anything, user pressed ^D? > > + goto out_err; > > there are two situations which with this patch fails now: > > if the key-file is empty (but regular) file, it should not fail here, I mean: > touch empty > cryptsetup luksOpen ... --key-file=empty Hmm, does an empty key file have any use in practice? cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt