Package: fakeroot
Version: 1.37.1.1-1
Tags: patch

A few quotes are missing for proper handling of whitespaces in 
filenames, patch attached.


Yann Dirson | Vates Platform Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech
From e282244d83bbe52d69af71f750a80c20856e3df4 Mon Sep 17 00:00:00 2001
From: Yann Dirson <yann.dir...@vates.tech>
Date: Mon, 31 Mar 2025 12:06:16 +0200
Subject: [PATCH] Fix -s and -i handling of spaces in filename

Signed-off-by: Yann Dirson <yann.dir...@vates.tech>
---
 scripts/fakeroot.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/fakeroot.in b/scripts/fakeroot.in
index 0d6f435..d981c83 100755
--- a/scripts/fakeroot.in
+++ b/scripts/fakeroot.in
@@ -75,15 +75,15 @@ while test "X$1" != "X--"; do
        shift
        if test -f "$1"; then
          FAKEDOPTS=$FAKEDOPTS" --load"
-         PIPEIN="<$1"
+         PIPEIN="<'$1'"
        else
          stderr "database file \`$1' does not exist."
        fi
        ;;
     -s)
        shift
-       FAKEDOPTS=$FAKEDOPTS" --save-file $1"
-       [ -p $1 ] || WAITINTRAP=1
+       FAKEDOPTS=$FAKEDOPTS" --save-file '$1'"
+       [ -p "$1" ] || WAITINTRAP=1
        ;;
     -u|--unknown-is-real)
        FAKEDOPTS=$FAKEDOPTS" --unknown-is-real"
-- 
2.39.5

Reply via email to