Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1446)

Unified Diff: tcsd.conf

Issue 6793028: Fixed a minor 'umask' that couldn't have worked. (Closed) Base URL: ssh://gitrw.chromium.org:9222/init.git@master
Patch Set: ...once umask isn't being restored, don't need to save it. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tcsd.conf
diff --git a/tcsd.conf b/tcsd.conf
index c7cb49d4186085d9458254d74116eace3f337bfc..8a17e1dc52c54402dde2f3a5669e9c3f9d800d33 100644
--- a/tcsd.conf
+++ b/tcsd.conf
@@ -49,13 +49,11 @@ pre-start script
if [ ! -e /var/lib/tpm ]; then
mkdir -m 0700 -p /var/lib/tpm
fi
- current_mask=$(umask)
umask 0177
cp --no-preserve=mode /etc/trousers/system.data.auth \
/var/lib/tpm/system.data
umask 0133
touch /var/lib/.tpm_owned
- umask $(current_mask)
fi
fi
fi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698