Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Membres actifs
fichiers_configuration
Commits
854fbfec
Commit
854fbfec
authored
Sep 27, 2013
by
Vincent Le gallic
Browse files
[umask] Patch : problème de préfixe
parent
d23bdca3
Changes
2
Hide whitespace changes
Inline
Side-by-side
.bashrc
View file @
854fbfec
...
...
@@ -100,7 +100,7 @@ function cd {
builtin cd
"
$@
"
ret
=
$?
if
[
-f
~/.umaskrc
]
;
then
umask
$(
/usr/bin/awk
'BEGIN {pwd=ENVIRON["PWD"]; a=length(pwd); cmax=0} {if($1==pwd) {MASK=$2;exit}; c=length($1); if(c>a) {next}; if(substr(pwd,0,c)==$1 && c > cmax) {cmax=c; MASK=$2}} END {print MASK}'
~/.umaskrc
)
>
/dev/null
umask
$(
/usr/bin/awk
'BEGIN {pwd=ENVIRON["PWD"]
"/"
; a=length(pwd); cmax=0} {if($1==pwd) {MASK=$2;exit}; c=length($1); if(c>a) {next}; if(substr(pwd,0,c
+1
)==$1 && c > cmax) {cmax=c; MASK=$2}} END {print MASK}'
~/.umaskrc
)
>
/dev/null
fi
return
$ret
}
...
...
.umaskrc
View file @
854fbfec
...
...
@@ -13,11 +13,11 @@
#------------------------------------------------------------------------------
#path #umask
/ 022 #umask par défaut
/usr/scripts 002 # Donne les droits d'écriture au groupe
/git/ 002
/var/lib/bcfg2 002
/localhome/django/intranet 002
/localhome/webdata 002
/home/respbats/www 002
/localhome/fortunes 002
/
022 #umask par défaut
/usr/scripts
/
002 # Donne les droits d'écriture au groupe
/git/
002
/var/lib/bcfg2
/
002
/localhome/django/intranet
/
002
/localhome/webdata
/
002
/home/respbats/www
/
002
/localhome/fortunes
/
002
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment