Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Config_Files
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Maxime Bombar
Config_Files
Commits
854fbfec
Commit
854fbfec
authored
Sep 27, 2013
by
Vincent Le gallic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[umask] Patch : problème de préfixe
parent
d23bdca3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
.bashrc
.bashrc
+1
-1
.umaskrc
.umaskrc
+8
-8
No files found.
.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
Markdown
is supported
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