Merge branch 'r1-beta1-fixes'

This commit is contained in:
Marek Marczykowski 2011-05-26 11:46:31 +02:00
commit 06780a848f

View File

@ -75,7 +75,7 @@ int single_file_processor(char *filename, struct stat *st)
if (S_ISREG(mode)) { if (S_ISREG(mode)) {
int ret; int ret;
fd = open(filename, O_RDONLY); fd = open(filename, O_RDONLY);
if (!fd) if (fd < 0)
gui_fatal("open %s", filename); gui_fatal("open %s", filename);
hdr.filelen = st->st_size; hdr.filelen = st->st_size;
write_headers(&hdr, filename); write_headers(&hdr, filename);