Skip to content

Commit

Permalink
Make the iso9660 extfs helper read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
slowpeek committed Jul 28, 2024
1 parent 9b2faec commit afa9fce
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions src/vfs/extfs/helpers/iso9660.in
Original file line number Diff line number Diff line change
Expand Up @@ -114,34 +114,6 @@ xorriso_copyout() {
$XORRISO -dev stdio:"$1" -osirrox on -extract "$2" "$3" >/dev/null 2>&1
}

xorriso_copyin() {
if test -z "$XORRISO"; then
return 1
fi
$XORRISO -dev stdio:"$1" -cpr "$3" "$2" >/dev/null 2>&1
}

xorriso_mkdir() {
if test -z "$XORRISO"; then
return 1
fi
$XORRISO -dev stdio:"$1" -mkdir "$2" >/dev/null 2>&1
}

xorriso_rmdir() {
if test -z "$XORRISO"; then
return 1
fi
$XORRISO -dev stdio:"$1" -rmdir "$2" >/dev/null 2>&1
}

xorriso_rm() {
if test -z "$XORRISO"; then
return 1
fi
$XORRISO -dev stdio:"$1" -rm "$2" >/dev/null 2>&1
}

# tested to comply with isoinfo 2.0's output
test_iso () {
ISOINFO=$(which isoinfo 2>/dev/null)
Expand Down Expand Up @@ -266,30 +238,6 @@ case "$cmd" in
}
exit 0
;;
rm)
xorriso_rm "$@" || {
exit 1
}
exit 0
;;
rmdir)
xorriso_rmdir "$@" || {
exit 1
}
exit 0
;;
mkdir)
xorriso_mkdir "$@" || {
exit 1
}
exit 0
;;
copyin)
xorriso_copyin "$@" || {
exit 1
}
exit 0
;;
copyout)
xorriso_copyout "$@" || {
test_iso "$@" || exit 1
Expand Down

0 comments on commit afa9fce

Please sign in to comment.