diff options
Diffstat (limited to 'brillo/scoped_umask.cc')
-rw-r--r-- | brillo/scoped_umask.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/brillo/scoped_umask.cc b/brillo/scoped_umask.cc deleted file mode 100644 index ac6b208..0000000 --- a/brillo/scoped_umask.cc +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2019 The Chromium OS Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "brillo/scoped_umask.h" - -#include <sys/stat.h> - -namespace brillo { - -ScopedUmask::ScopedUmask(mode_t new_umask) { - saved_umask_ = umask(new_umask); -} - -ScopedUmask::~ScopedUmask() { - umask(saved_umask_); -} - -} // namespace brillo |