File: add_some_missing_filename_quoting.patch

package info (click to toggle)
patch 2.8-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,888 kB
  • sloc: ansic: 41,776; sh: 7,300; yacc: 1,858; makefile: 143; sed: 54
file content (26 lines) | stat: -rw-r--r-- 810 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From aea66268c956bb001ece14c98fd5542f368a6177 Mon Sep 17 00:00:00 2001
From: Andreas Gruenbacher <andreas.gruenbacher@gmail.com>
Date: Sat, 5 Apr 2025 17:25:45 +0200
Subject: Add some missing filename quoting

* src/patch.c (main): Quote outname.
---
 src/patch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/patch.c b/src/patch.c
index e4d0524..6c5d926 100644
--- a/src/patch.c
+++ b/src/patch.c
@@ -616,7 +616,7 @@ main (int argc, char **argv)
 		      struct stat outstat;
 
 		      if (stat_file (outname, &outstat) != 0)
-			say ("Cannot stat file %s, skipping backup\n", outname);
+			say ("Cannot stat file %s, skipping backup\n", quotearg (outname));
 		      else
 			output_file (&(struct outfile) { .name = outname },
 				     &outstat, nullptr, nullptr,
-- 
cgit v1.1