Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fichiers_configuration
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Membres actifs
fichiers_configuration
Commits
854fbfec
Commit
854fbfec
authored
11 years ago
by
Vincent Le gallic
Browse files
Options
Downloads
Patches
Plain Diff
[umask] Patch : problème de préfixe
parent
d23bdca3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.bashrc
+1
-1
1 addition, 1 deletion
.bashrc
.umaskrc
+8
-8
8 additions, 8 deletions
.umaskrc
with
9 additions
and
9 deletions
.bashrc
+
1
−
1
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
}
...
...
This diff is collapsed.
Click to expand it.
.umaskrc
+
8
−
8
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment