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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
|
--- glibc-2.31/elf/ldd.bash.in.orig 2020-02-01 12:52:50.000000000 +0100
+++ glibc-2.31/elf/ldd.bash.in 2020-02-01 14:02:07.365985940 +0100
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Copyright (C) 1996-2022 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
@@ -35,16 +35,16 @@
case "$1" in
--vers | --versi | --versio | --version)
echo 'ldd @PKGVERSION@@VERSION@'
- printf $"Copyright (C) %s Free Software Foundation, Inc.
+ printf "Copyright (C) %s Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
" "2022"
- printf $"Written by %s and %s.
+ printf "Written by %s and %s.
" "Roland McGrath" "Ulrich Drepper"
exit 0
;;
--h | --he | --hel | --help)
- echo $"Usage: ldd [OPTION]... FILE...
+ echo "Usage: ldd [OPTION]... FILE...
--help print this help and exit
--version print version information and exit
-d, --data-relocs process data relocations
@@ -52,7 +52,7 @@
-u, --unused print unused direct dependencies
-v, --verbose print all information
"
- printf $"For bug reporting instructions, please see:\\n%s.\\n" \
+ printf "For bug reporting instructions, please see:\\n%s.\\n" \
"@REPORT_BUGS_TO@"
exit 0
;;
@@ -77,15 +77,15 @@
shift
;;
--v | --ve | --ver)
- echo >&2 $"ldd: option \`$1' is ambiguous"
+ echo >&2 "ldd: option \`$1' is ambiguous"
exit 1
;;
--) # Stop option processing.
shift; break
;;
-*)
- echo >&2 'ldd:' $"unrecognized option" "\`$1'"
- echo >&2 $"Try \`ldd --help' for more information."
+ echo >&2 'ldd:' "unrecognized option" "\`$1'"
+ echo >&2 "Try \`ldd --help' for more information."
exit 1
;;
*)
@@ -121,8 +121,8 @@
case $# in
0)
- echo >&2 'ldd:' $"missing file arguments"
- echo >&2 $"Try \`ldd --help' for more information."
+ echo >&2 'ldd:' "missing file arguments"
+ echo >&2 "Try \`ldd --help' for more information."
exit 1
;;
1)
@@ -144,13 +144,13 @@
;;
esac
if test ! -e "$file"; then
- echo "ldd: ${file}:" $"No such file or directory" >&2
+ echo "ldd: ${file}:" "No such file or directory" >&2
result=1
elif test ! -f "$file"; then
- echo "ldd: ${file}:" $"not regular file" >&2
+ echo "ldd: ${file}:" "not regular file" >&2
result=1
elif test -r "$file"; then
- test -x "$file" || echo 'ldd:' $"\
+ test -x "$file" || echo 'ldd:' "\
warning: you do not have execution permission for" "\`$file'" >&2
RTLD=
ret=1
@@ -167,7 +167,7 @@
1)
# This can be a non-ELF binary or no binary at all.
nonelf "$file" || {
- echo $" not a dynamic executable" >&2
+ echo " not a dynamic executable" >&2
result=1
}
;;
@@ -175,12 +175,12 @@
try_trace "$RTLD" "$file" || result=1
;;
*)
- echo 'ldd:' ${RTLD} $"exited with unknown exit code" "($ret)" >&2
+ echo 'ldd:' ${RTLD} "exited with unknown exit code" "($ret)" >&2
exit 1
;;
esac
else
- echo 'ldd:' $"error: you do not have read permission for" "\`$file'" >&2
+ echo 'ldd:' "error: you do not have read permission for" "\`$file'" >&2
result=1
fi
done
--- glibc-2.31/elf/sotruss.sh.orig 2020-02-01 13:38:05.830462075 +0100
+++ glibc-2.31/elf/sotruss.sh 2020-02-01 14:06:25.601253626 +0100
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Copyright (C) 2011-2022 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
@@ -29,7 +29,7 @@
lib='@PREFIX@/$LIB/audit/sotruss-lib.so'
do_help() {
- echo $"Usage: sotruss [OPTION...] [--] EXECUTABLE [EXECUTABLE-OPTION...]
+ echo "Usage: sotruss [OPTION...] [--] EXECUTABLE [EXECUTABLE-OPTION...]
-F, --from FROMLIST Trace calls from objects on FROMLIST
-T, --to TOLIST Trace calls to objects on TOLIST
@@ -43,28 +43,28 @@
--version Print program version"
echo
- printf $"Mandatory arguments to long options are also mandatory for any corresponding\nshort options.\n"
+ printf "Mandatory arguments to long options are also mandatory for any corresponding\nshort options.\n"
echo
- printf $"For bug reporting instructions, please see:\\n%s.\\n" \
+ printf "For bug reporting instructions, please see:\\n%s.\\n" \
"@REPORT_BUGS_TO@"
exit 0
}
do_missing_arg() {
- printf >&2 $"%s: option requires an argument -- '%s'\n" sotruss "$1"
- printf >&2 $"Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
+ printf >&2 "%s: option requires an argument -- '%s'\n" sotruss "$1"
+ printf >&2 "Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
exit 1
}
do_ambiguous() {
- printf >&2 $"%s: option is ambiguous; possibilities:"
+ printf >&2 "%s: option is ambiguous; possibilities:"
while test $# -gt 0; do
printf >&2 " '%s'" $1
shift
done
printf >&2 "\n"
- printf >&2 $"Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
+ printf >&2 "Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
exit 1
}
@@ -72,18 +72,18 @@
case "$1" in
--v | --ve | --ver | --vers | --versi | --versio | --version)
echo "sotruss @PKGVERSION@@VERSION@"
- printf $"Copyright (C) %s Free Software Foundation, Inc.
+ printf "Copyright (C) %s Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
" "2022"
- printf $"Written by %s.\n" "Ulrich Drepper"
+ printf "Written by %s.\n" "Ulrich Drepper"
exit 0
;;
-\? | --h | --he | --hel | --help)
do_help
;;
--u | --us | --usa | --usag | --usage)
- printf $"Usage: %s [-ef] [-F FROMLIST] [-o FILENAME] [-T TOLIST] [--exit]
+ printf "Usage: %s [-ef] [-F FROMLIST] [-o FILENAME] [-T TOLIST] [--exit]
[--follow] [--from FROMLIST] [--output FILENAME] [--to TOLIST]
[--help] [--usage] [--version] [--]
EXECUTABLE [EXECUTABLE-OPTION...]\n" sotruss
@@ -131,8 +131,8 @@
break
;;
-*)
- printf >&2 $"%s: unrecognized option '%c%s'\n" sotruss '-' ${1#-}
- printf >&2 $"Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
+ printf >&2 "%s: unrecognized option '%c%s'\n" sotruss '-' ${1#-}
+ printf >&2 "Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
exit 1
;;
*)
|