Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 9a85a7d

Browse files
committed
Fix SCAP Workbench errors shown in Diagnostics Windows
This patch addresses the follwong part of messages chunk. Even if it says that "oscap" process has written the content, it's the wrapper script in fact. ``` 14:34:53 | error | The 'oscap' process has written the following content to stderr: chown: cannot access '/tmp/SCAP': No such file or directory 14:34:53 | error | The 'oscap' process has written the following content to stderr: chown: cannot access 'Workbench.h22666': No such file or directory 14:34:53 | error | The 'oscap' process has written the following content to stderr: chown: cannot access '/tmp/SCAP': No such file or directory 14:34:53 | error | The 'oscap' process has written the following content to stderr: chown: cannot access 'Workbench.M22666': No such file or directory 14:34:53 | error | The 'oscap' process has written the following content to stderr: chown: cannot access '/tmp/SCAP': No such file or directory 14:34:53 | error | The 'oscap' process has written the following content to stderr: chown: cannot access 'Workbench.X22666': No such file or directory ```
1 parent 18eded2 commit 9a85a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scap-workbench-oscap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function chown_copy
9393

9494
# chown only required if wrapper_{uid,gid} differs from real_{uid,gid}
9595
if [ $wrapper_uid -ne $real_uid ] || [ $wrapper_gid -ne $real_gid ]; then
96-
chown $wrapper_uid:$wrapper_gid $where
96+
chown $wrapper_uid:$wrapper_gid "$where"
9797
fi
9898
}
9999

0 commit comments

Comments
 (0)