From afa9fce76e1b7136e6b2141a8b0cb31a284f66b7 Mon Sep 17 00:00:00 2001 From: slowpeek Date: Thu, 20 Jun 2024 01:07:34 +0300 Subject: [PATCH] Make the iso9660 extfs helper read-only --- src/vfs/extfs/helpers/iso9660.in | 52 -------------------------------- 1 file changed, 52 deletions(-) diff --git a/src/vfs/extfs/helpers/iso9660.in b/src/vfs/extfs/helpers/iso9660.in index a4519dc3c0..e9d0329c21 100644 --- a/src/vfs/extfs/helpers/iso9660.in +++ b/src/vfs/extfs/helpers/iso9660.in @@ -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) @@ -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