![]() |
FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
The universal unpacker code to unpack a disk file system. More...

Go to the source code of this file.
Classes | |
| struct | permlist |
| Structure to hold permission about an inode. More... | |
Typedefs | |
| typedef struct permlist | permlist |
Functions | |
| void | FatDiskName (char *Name) |
| Special handling for FAT names. More... | |
| void | FreeDiskPerms (permlist *List) |
| Deallocate perms. More... | |
| permlist * | ExtractDiskPerms (char *FStype, char *Source) |
| Given a disk, load in all of the file permissions. Assumes Source is already quote-tainted! More... | |
| int | SameInode (char *Inode1, char *Inode2) |
| Determine if two inodes are the same. More... | |
| permlist * | SetDiskPerm (char *inode, permlist *List, char *Destination, char *Target) |
| Find a disk permission by inode, set the permissions on the file, and free the memory. More... | |
| int | ExtractDisk (char *Source, char *FStype, char *Destination) |
| Given a disk image, type of system, and a directory, extract all files! More... | |
The universal unpacker code to unpack a disk file system.
Definition in file ununpack-disk.c.
| int ExtractDisk | ( | char * | Source, |
| char * | FStype, | ||
| char * | Destination | ||
| ) |
Given a disk image, type of system, and a directory, extract all files!
This can handle any filesystem supported by fls/icat.
Special: FAT is case-insensitive, so everything is converted to lowercase.
Uses the following external commands: fls icat
icat and fls are from the package "sleuthkit".
| Source | |
| FStype | filesystem type |
| Destination |
Definition at line 299 of file ununpack-disk.c.
| permlist* ExtractDiskPerms | ( | char * | FStype, |
| char * | Source | ||
| ) |
Given a disk, load in all of the file permissions. Assumes Source is already quote-tainted!
| FStype | Filesystem type |
| Source | Source filepath |
Definition at line 92 of file ununpack-disk.c.
| void FatDiskName | ( | char * | Name | ) |
Special handling for FAT names.
| Name | Filename |
Definition at line 48 of file ununpack-disk.c.
| void FreeDiskPerms | ( | permlist * | List | ) |
| int SameInode | ( | char * | Inode1, |
| char * | Inode2 | ||
| ) |
Determine if two inodes are the same.
| Inode1 | |
| Inode2 |
Definition at line 189 of file ununpack-disk.c.
Find a disk permission by inode, set the permissions on the file, and free the memory.
| inode | |
| List | permlist |
| Destination | Target directory containing file |
| Target | Filename (may also include path components) |
Definition at line 216 of file ununpack-disk.c.