search for: new_cpio_header

Displaying 3 results from an estimated 3 matches for "new_cpio_header".

2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...uf, int in_des, long num_bytes) +static void tape_buffered_read(char *in_buf, int in_des, long num_bytes) { register long bytes_left = num_bytes; /* Bytes needing to be copied. */ register long space_left; /* Bytes to copy from input buffer. */ @@ -282,7 +269,7 @@ struct deferment { struct new_cpio_header header; }; -struct deferment *create_deferment(struct new_cpio_header *file_hdr) +static struct deferment *create_deferment(struct new_cpio_header *file_hdr) { struct deferment *d; d = (struct deferment *)xmalloc(sizeof(struct deferment)); @@ -292,13 +279,13 @@ struct deferment *create_defe...
2008 Jun 17
1
Bug#486557: cpio segfault
hello, On Mon, 16 Jun 2008, Joey Hess wrote: > klibc cpio segfaults extracting various cpio files. It seems to work for > small files, but fail for larger ones, including the d-i root floppy > image. > > For example: > > joey at kodama:/tmp/empty>wget http://people.debian.org/~joeyh/d-i/images/20080401-09:01/floppy/root.img > joey at kodama:/tmp/empty>zcat
2011 Jun 28
0
[PATCH] cpio: cleanup O_BINARY usage.
...- O_CREAT | O_WRONLY | O_BINARY, 0600); + out_file_des = open(d->header.c_name, O_CREAT | O_WRONLY, 0600); if (out_file_des < 0) { fprintf(stderr, "%s: open %s: %s\n", progname, d->header.c_name, strerror(errno)); @@ -647,8 +642,7 @@ copyin_regular_file(struct new_cpio_header *file_hdr, int in_file_des) } /* If not linked, copy the contents of the file. */ - out_file_des = open(file_hdr->c_name, - O_CREAT | O_WRONLY | O_BINARY, 0600); + out_file_des = open(file_hdr->c_name, O_CREAT | O_WRONLY, 0600); if (out_file_des < 0) { fprintf(stderr, &...