Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | commit c45bae84817a70fef6c2b661a07a492a0d23ae85 |
| 2 | Author: Peter Seebach <peter.seebach@windriver.com> |
| 3 | Date: Wed May 11 15:16:06 2016 -0500 |
| 4 | |
| 5 | Fix permissions on temporary directory |
| 6 | |
| 7 | The temporary directory's permissions have to allow other users to |
| 8 | view the directory. A default umask of 022 is common, but not mandatory, |
| 9 | and secure systems may have more restrictive defaults. |
| 10 | |
| 11 | Signed-off-by: Peter Seebach <peter.seebach@windriver.com> |
| 12 | |
| 13 | diff --git a/test/root/permissions.test b/test/root/permissions.test |
| 14 | index 42615f5..098b52a 100644 |
| 15 | --- a/test/root/permissions.test |
| 16 | +++ b/test/root/permissions.test |
| 17 | @@ -16,6 +16,7 @@ Cry immediately if we are not running as root. |
| 18 | First, set up a temporary directory and create a regular file with |
| 19 | defined permissions. |
| 20 | |
| 21 | + $ umask 022 |
| 22 | $ mkdir d |
| 23 | $ cd d |
| 24 | $ umask 027 |