patches/strace/4.5.15/170-undef-CTL_PROC.patch
author |
Anthony Foiani <anthony.foiani@gmail.com> |
|
Thu Apr 26 19:55:59 2012 -0600 (2012-04-26) |
changeset 2939 |
58974be61289 |
parent 746 |
b150d6f590fc
|
permissions |
-rw-r--r-- |
Allow multi-word "install" command.
Autoconf can determine that the correct install command includes flags,
e.g., "/usr/bin/install -c". When using this as a command, we can't
enclose the value in double-quotes, as that makes some shells use the
whole expression as a filename:
# this is the value returned by autoconf and stored in CT_install
$ ins="/usr/bin/install -c"
# if we call it with quotes, the command is not found
$ "${ins}"
bash: /usr/bin/install -c: No such file or directory
# removing the quotes lets it work as expected
$ ${ins}
/usr/bin/install: missing file operand
Try `/usr/bin/install --help' for more information.
Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
yann@257
|
1 |
diff -dur strace-4.5.15.orig/system.c strace-4.5.15/system.c
|
yann@257
|
2 |
--- strace-4.5.15.orig/system.c 2007-01-17 00:22:36.000000000 +0100
|
yann@257
|
3 |
+++ strace-4.5.15/system.c 2007-07-14 19:28:41.000000000 +0200
|
yann@257
|
4 |
@@ -1612,7 +1612,9 @@
|
yann@257
|
5 |
{ CTL_KERN, "CTL_KERN" },
|
yann@257
|
6 |
{ CTL_VM, "CTL_VM" },
|
yann@257
|
7 |
{ CTL_NET, "CTL_NET" },
|
yann@257
|
8 |
+#ifdef CTL_PROC
|
yann@257
|
9 |
{ CTL_PROC, "CTL_PROC" },
|
yann@257
|
10 |
+#endif
|
yann@257
|
11 |
{ CTL_FS, "CTL_FS" },
|
yann@257
|
12 |
{ CTL_DEBUG, "CTL_DEBUG" },
|
yann@257
|
13 |
{ CTL_DEV, "CTL_DEV" },
|