summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/pam/libpam/libpam-xtests-remove-bash-dependency.patch
blob: 680029ae0d4f223d6d1374810ecac4bad2fdddb1 (plain)
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
From 555407ff6e2f742df64ae93859f14a0fc1397829 Mon Sep 17 00:00:00 2001
From: Wenzong Fan <wenzong.fan@windriver.com>
Date: Fri, 12 Sep 2014 05:35:05 -0400
Subject: [PATCH] libpam/xtests: remove bash dependency

There's not bash specific syntax in the xtest scripts:

  # after below patches applied:
  $ cd Linux-PAM-1.1.6/xtests
  $ checkbashisms *.sh
  No output

Just remove the runtime dependency to bash.

Upstream-Status: Pending

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
 xtests/run-xtests.sh             |    2 +-
 xtests/tst-pam_access1.sh        |    2 +-
 xtests/tst-pam_access2.sh        |    2 +-
 xtests/tst-pam_access3.sh        |    2 +-
 xtests/tst-pam_access4.sh        |    2 +-
 xtests/tst-pam_assemble_line1.sh |    2 +-
 xtests/tst-pam_group1.sh         |    2 +-
 xtests/tst-pam_limits1.sh        |    2 +-
 xtests/tst-pam_pwhistory1.sh     |    2 +-
 xtests/tst-pam_substack1.sh      |    2 +-
 xtests/tst-pam_substack2.sh      |    2 +-
 xtests/tst-pam_substack3.sh      |    2 +-
 xtests/tst-pam_substack4.sh      |    2 +-
 xtests/tst-pam_substack5.sh      |    2 +-
 xtests/tst-pam_succeed_if1.sh    |    2 +-
 xtests/tst-pam_unix1.sh          |    2 +-
 xtests/tst-pam_unix2.sh          |    2 +-
 xtests/tst-pam_unix3.sh          |    2 +-
 xtests/tst-pam_unix4.sh          |    2 +-
 19 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/xtests/run-xtests.sh b/xtests/run-xtests.sh
index 3a89057..1cf8684 100755
--- a/xtests/run-xtests.sh
+++ b/xtests/run-xtests.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 SRCDIR=$1
 shift 1
diff --git a/xtests/tst-pam_access1.sh b/xtests/tst-pam_access1.sh
index 180d256..70521d2 100755
--- a/xtests/tst-pam_access1.sh
+++ b/xtests/tst-pam_access1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 /usr/sbin/groupadd tstpamaccess
 /usr/sbin/useradd -G tstpamaccess -p '!!' tstpamaccess1
diff --git a/xtests/tst-pam_access2.sh b/xtests/tst-pam_access2.sh
index 0a30275..7e3e60f 100755
--- a/xtests/tst-pam_access2.sh
+++ b/xtests/tst-pam_access2.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 /usr/sbin/groupadd tstpamaccess
 /usr/sbin/useradd -p '!!' tstpamaccess2
diff --git a/xtests/tst-pam_access3.sh b/xtests/tst-pam_access3.sh
index 348e0c3..3630e2e 100755
--- a/xtests/tst-pam_access3.sh
+++ b/xtests/tst-pam_access3.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 /usr/sbin/useradd -p '!!' tstpamaccess3
 ./tst-pam_access3
diff --git a/xtests/tst-pam_access4.sh b/xtests/tst-pam_access4.sh
index 61e7b44..4538df4 100755
--- a/xtests/tst-pam_access4.sh
+++ b/xtests/tst-pam_access4.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 /usr/sbin/useradd -p '!!' tstpamaccess4
 ./tst-pam_access4
diff --git a/xtests/tst-pam_assemble_line1.sh b/xtests/tst-pam_assemble_line1.sh
index 248d47e..dc2a675 100755
--- a/xtests/tst-pam_assemble_line1.sh
+++ b/xtests/tst-pam_assemble_line1.sh
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
 
 exec ./tst-pam_authfail tst-pam_assemble_line1
diff --git a/xtests/tst-pam_group1.sh b/xtests/tst-pam_group1.sh
index b76377f..44faca9 100755
--- a/xtests/tst-pam_group1.sh
+++ b/xtests/tst-pam_group1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 /usr/sbin/groupadd tstpamgrpg
 /usr/sbin/useradd -p '!!' tstpamgrp
diff --git a/xtests/tst-pam_limits1.sh b/xtests/tst-pam_limits1.sh
index 4faa822..32c021d 100755
--- a/xtests/tst-pam_limits1.sh
+++ b/xtests/tst-pam_limits1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 /usr/sbin/useradd -p '!!' tstpamlimits
 ./tst-pam_limits1
diff --git a/xtests/tst-pam_pwhistory1.sh b/xtests/tst-pam_pwhistory1.sh
index ddb3b8b..0f212e2 100644
--- a/xtests/tst-pam_pwhistory1.sh
+++ b/xtests/tst-pam_pwhistory1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 /usr/sbin/useradd tstpampwhistory
 ./tst-pam_pwhistory1
diff --git a/xtests/tst-pam_substack1.sh b/xtests/tst-pam_substack1.sh
index 5260175..f1b72a7 100755
--- a/xtests/tst-pam_substack1.sh
+++ b/xtests/tst-pam_substack1.sh
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
 
 exec ./tst-pam_authfail tst-pam_substack1
diff --git a/xtests/tst-pam_substack2.sh b/xtests/tst-pam_substack2.sh
index c02f597..3804fa7 100755
--- a/xtests/tst-pam_substack2.sh
+++ b/xtests/tst-pam_substack2.sh
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
 
 exec ./tst-pam_authsucceed tst-pam_substack2
diff --git a/xtests/tst-pam_substack3.sh b/xtests/tst-pam_substack3.sh
index 0e572aa..aa48e8e 100755
--- a/xtests/tst-pam_substack3.sh
+++ b/xtests/tst-pam_substack3.sh
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
 
 exec ./tst-pam_authsucceed tst-pam_substack3
diff --git a/xtests/tst-pam_substack4.sh b/xtests/tst-pam_substack4.sh
index a3ef08a..958a07a 100755
--- a/xtests/tst-pam_substack4.sh
+++ b/xtests/tst-pam_substack4.sh
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
 
 exec ./tst-pam_authsucceed tst-pam_substack4
diff --git a/xtests/tst-pam_substack5.sh b/xtests/tst-pam_substack5.sh
index e2714fd..7e0da74 100755
--- a/xtests/tst-pam_substack5.sh
+++ b/xtests/tst-pam_substack5.sh
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
 
 exec ./tst-pam_authfail tst-pam_substack5
diff --git a/xtests/tst-pam_succeed_if1.sh b/xtests/tst-pam_succeed_if1.sh
index a643b2e..58e57b4 100755
--- a/xtests/tst-pam_succeed_if1.sh
+++ b/xtests/tst-pam_succeed_if1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 /usr/sbin/useradd -p '!!' tstpamtest
 /usr/sbin/useradd -p '!!' pamtest
diff --git a/xtests/tst-pam_unix1.sh b/xtests/tst-pam_unix1.sh
index f75bd84..72deac0 100755
--- a/xtests/tst-pam_unix1.sh
+++ b/xtests/tst-pam_unix1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 /usr/sbin/useradd -p '!!' tstpamunix
 ./tst-pam_unix1
diff --git a/xtests/tst-pam_unix2.sh b/xtests/tst-pam_unix2.sh
index 7093155..c04d6e6 100755
--- a/xtests/tst-pam_unix2.sh
+++ b/xtests/tst-pam_unix2.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # pamunix0 = 0aXKZztA.d1KY
 /usr/sbin/useradd -p 0aXKZztA.d1KY  tstpamunix
diff --git a/xtests/tst-pam_unix3.sh b/xtests/tst-pam_unix3.sh
index ef4a07c..b52db2b 100755
--- a/xtests/tst-pam_unix3.sh
+++ b/xtests/tst-pam_unix3.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # pamunix01 = 0aXKZztA.d1KYIuFXArmd2jU
 /usr/sbin/useradd -p 0aXKZztA.d1KYIuFXArmd2jU tstpamunix
diff --git a/xtests/tst-pam_unix4.sh b/xtests/tst-pam_unix4.sh
index 787c2f9..e7976fd 100755
--- a/xtests/tst-pam_unix4.sh
+++ b/xtests/tst-pam_unix4.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # pamunix01 = 0aXKZztA.d1KYIuFXArmd2jU
 /usr/sbin/useradd -p 0aXKZztA.d1KYIuFXArmd2jU tstpamunix
-- 
1.7.9.5