Skip to content

Commit 2111d33

Browse files
committed
fix id output to not print security context
1 parent d6c6269 commit 2111d33

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/gidmapping.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
TRY_TOP="${TRY_TOP:-$(git rev-parse --show-toplevel --show-superproject-working-tree)}"
44
TRY="$TRY_TOP/try"
55

6-
control=$(id -G)
7-
testing=$("$TRY" id -G 2>/dev/null)
6+
control=$(id -Gn)
7+
testing=$("$TRY" -n id -Gn 2>/dev/null)
88

99
if [ "$control" = "$testing" ]
1010
then

test/uidmapping.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
TRY_TOP="${TRY_TOP:-$(git rev-parse --show-toplevel --show-superproject-working-tree)}"
44
TRY="$TRY_TOP/try"
55

6-
control=$(id)
7-
testing=$(sudo "$TRY" -u "$USER" id)
6+
control=$(id -un)
7+
testing=$(sudo "$TRY" -n -u "$USER" id -un)
88

99
if [ "$control" = "$testing" ]
1010
then

0 commit comments

Comments
 (0)