File: Correctly-escape-command-in-manpage.patch

package info (click to toggle)
wsdd 2%3A0.8-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 408 kB
  • sloc: python: 1,560; sh: 259; makefile: 21; xml: 14
file content (22 lines) | stat: -rw-r--r-- 920 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
From: Alessandro Astone <alessandro.astone@canonical.com>
Date: Mon, 24 Jun 2024 12:50:56 +0200
Subject: Correctly escape command in manpage

Forwarded: https://github.com/christgau/wsdd/pull/208
---
 man/wsdd.1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/wsdd.1 b/man/wsdd.1
index 3c59b13..585b61f 100644
--- a/man/wsdd.1
+++ b/man/wsdd.1
@@ -142,7 +142,7 @@ domain socket to which a client can connect to.
     wsdd \-\-interface eth0 \-\-interface eth2 \-\-ipv6only
 .SS Set the Workgroup according to smb.conf, be verbose, run with dropped privileges, and change the root directory to an (empty) directory
 
-    SMB_GROUP=$(grep \-i '^\s*workgroup\s*=' smb.conf | cut \-f2 \-d= | tr \-d '[:blank:]')
+    SMB_GROUP=$(grep \-i '^\\s*workgroup\\s*=' smb.conf | cut \-f2 \-d= | tr \-d '[:blank:]')
 
     wsdd \-v \-w $SMB_GROUP -u daemon:daemon -c /var/run/wsdd/chroot
 .SH FIREWALL SETUP