projects
/
grml-scripts-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76adfcd
)
grml-screen: only chgrp if mkdir was successfull
gebi/grml-screen
author
Michael Gebetsroither
<michael@mgeb.org>
Wed, 8 Jun 2011 19:36:02 +0000
(21:36 +0200)
committer
Michael Gebetsroither
<michael@mgeb.org>
Wed, 8 Jun 2011 19:36:02 +0000
(21:36 +0200)
usr_bin/grml-screen
patch
|
blob
|
history
diff --git
a/usr_bin/grml-screen
b/usr_bin/grml-screen
index
d6413e0
..
91cedce
100755
(executable)
--- a/
usr_bin/grml-screen
+++ b/
usr_bin/grml-screen
@@
-17,8
+17,7
@@
# try to mitigate raceconditions from screen
SCREENDIR_="/var/run/screen"
if [ `id -u` = 0 ] ; then
- mkdir -m 755 $SCREENDIR_
- chgrp utmp $SCREENDIR_
+ mkdir -m 755 $SCREENDIR_ &>/dev/null && chgrp utmp $SCREENDIR_
fi
mkdir -m 700 "${SCREENDIR_}/S-$USER" &>/dev/null