summaryrefslogtreecommitdiffstats
path: root/base/aaabasicfs/unmask.sh
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:26:37 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:26:37 +0200
commit31cae2538311f58c8bba5441313d041436f11ce6 (patch)
treecc1fef0aaed8a6affc57b8abff2f8cf7690bb6c1 /base/aaabasicfs/unmask.sh
downloadnutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.gz
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.bz2
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.xz
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.zip
Ajout de aaabasicfs#2009-1
Diffstat (limited to 'base/aaabasicfs/unmask.sh')
-rw-r--r--base/aaabasicfs/unmask.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/aaabasicfs/unmask.sh b/base/aaabasicfs/unmask.sh
new file mode 100644
index 000000000..9a3f8243d
--- /dev/null
+++ b/base/aaabasicfs/unmask.sh
@@ -0,0 +1,6 @@
+# By default we want the umask to get set.
+if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
+ umask 002
+else
+ umask 022
+fi