~ubuntu-branches/ubuntu/utopic/lksctp-tools/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/patches/01-withsctp-quote-command-line-args.patch

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2013-05-12 23:32:14 UTC
  • mfrom: (1.1.11) (4.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20130512233214-unksumf8w0ld3hlo
Tags: 1.0.15+dfsg-1
* New upstream release.
* Remove 01-withsctp-quote-command-line-args.patch, merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From 9eb4c271c3b561d0141adb1e31c3ffc3725a1630 Mon Sep 17 00:00:00 2001
2
 
From: Daniel Borkmann <dborkman@redhat.com>
3
 
Date: Thu, 11 Apr 2013 15:57:18 +0200
4
 
Subject: [PATCH] withsctp: fix quoted command line arguments
5
 
 
6
 
withsctp breaks quoted command line arguments. Trivial example:
7
 
 
8
 
  $ withsctp echo "a  b  c"
9
 
  a b c
10
 
 
11
 
This is really bad with sshd:
12
 
 
13
 
  $ withsctp /usr/sbin/sshd -D -e -o "Port 4560"
14
 
  command-line line 0: missing port number.
15
 
 
16
 
After the fix, sshd works as expected:
17
 
 
18
 
  withsctp /usr/sbin/sshd -D -e -o "Port 4560"
19
 
  Server listening on 0.0.0.0 port 4560.
20
 
  Server listening on :: port 4560.
21
 
 
22
 
Reported-by: Mikko Markus Torni <mikko.markus.torni@iki.fi>
23
 
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
24
 
---
25
 
 src/withsctp/withsctp.in |    2 +-
26
 
 1 file changed, 1 insertion(+), 1 deletion(-)
27
 
 
28
 
diff --git a/src/withsctp/withsctp.in b/src/withsctp/withsctp.in
29
 
index cd0b323..874143c 100644
30
 
--- a/src/withsctp/withsctp.in
31
 
+++ b/src/withsctp/withsctp.in
32
 
@@ -9,4 +9,4 @@ then
33
 
     exit 1;
34
 
 fi
35
 
 
36
 
-exec $*
37
 
+exec "$@"
38
 
1.7.10.4
39