Changeset 4f3d72f in rtems
- Timestamp:
- Jul 27, 2010, 6:11:42 PM (11 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 270434cc
- Parents:
- 234a36c
- Location:
- cpukit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r234a36c r4f3d72f 1 2010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * libfs/src/imfs/imfs_load_tar.c, libmisc/untar/untar.c: Now supports 4 both pax and GNU tar created tar files. 5 1 6 2010-07-27 Joel Sherrill <joel.sherrilL@OARcorp.com> 2 7 -
cpukit/libfs/src/imfs/imfs_load_tar.c
r234a36c r4f3d72f 47 47 * 156 1 bytes Link flag 48 48 * 157 100 bytes Linkname ('\0' terminated, 99 maxmum length) 49 * 257 8 bytes Magic ("ustar \0") 49 * 257 8 bytes Magic PAX ("ustar\0" + 2 bytes padding) 50 * 257 8 bytes Magic GNU tar ("ustar \0") 50 51 * 265 32 bytes User name ('\0' terminated, 31 maxmum length) 51 52 * 297 32 bytes Group name ('\0' terminated, 31 maxmum length) … … 125 126 hdr_ptr = (char *) &tar_image[offset]; 126 127 offset += 512; 127 if (strncmp(&hdr_ptr[257], "ustar ", 7))128 if (strncmp(&hdr_ptr[257], "ustar", 5)) 128 129 break; 129 130 -
cpukit/libmisc/untar/untar.c
r234a36c r4f3d72f 40 40 * 156 1 bytes Link flag 41 41 * 157 100 bytes Linkname ('\0' terminated, 99 maxmum length) 42 * 257 8 bytes Magic ("ustar \0") 42 * 257 8 bytes Magic PAX ("ustar\0" + 2 bytes padding) 43 * 257 8 bytes Magic GNU tar ("ustar \0") 43 44 * 265 32 bytes User name ('\0' terminated, 31 maxmum length) 44 45 * 297 32 bytes Group name ('\0' terminated, 31 maxmum length) … … 144 145 bufr = &tar_ptr[ptr]; 145 146 ptr += 512; 146 if (strncmp(&bufr[257], "ustar ", 7))147 if (strncmp(&bufr[257], "ustar", 5)) 147 148 { 148 149 retval = UNTAR_SUCCESSFUL; … … 284 285 } 285 286 286 if (strncmp(&bufr[257], "ustar ", 7))287 if (strncmp(&bufr[257], "ustar", 5)) 287 288 { 288 289 break;
Note: See TracChangeset
for help on using the changeset viewer.