Merge branch 'main' into list
This commit is contained in:
@@ -58,6 +58,7 @@ func main() {
|
|||||||
list := flag.Bool("l", false, "List")
|
list := flag.Bool("l", false, "List")
|
||||||
long := flag.Bool("ll", false, "List with attributes")
|
long := flag.Bool("ll", false, "List with attributes")
|
||||||
numeric := flag.Bool("lln", false, "List with attributes and numeric ids")
|
numeric := flag.Bool("lln", false, "List with attributes and numeric ids")
|
||||||
|
offset := flag.Int64("o", 0, "Offset")
|
||||||
ignore := flag.Bool("ip", false, "Ignore Permissions and extract all files/folders with 0755")
|
ignore := flag.Bool("ip", false, "Ignore Permissions and extract all files/folders with 0755")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
if len(flag.Args()) < 2 {
|
if len(flag.Args()) < 2 {
|
||||||
@@ -68,7 +69,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
r, err := squashfs.NewReader(f)
|
r, err := squashfs.NewReaderAtOffset(f, *offset)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user