[gdm] daemon: use 0711 mode for directories
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] daemon: use 0711 mode for directories
- Date: Wed, 20 Feb 2013 16:51:33 +0000 (UTC)
commit c3cba52917d09372c238a4743542ac13c7004059
Author: Ray Strode <rstrode redhat com>
Date: Wed Feb 20 10:17:56 2013 -0500
daemon: use 0711 mode for directories
/var/run/gdm was ending up 0770 in some cases, which
is causing problems.
This commit changes everything to use 0711 across the
board.
https://bugzilla.gnome.org/show_bug.cgi?id=693679
daemon/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/daemon/main.c b/daemon/main.c
index b2ec1bf..8176fe3 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -184,19 +184,19 @@ gdm_daemon_ensure_dirs (uid_t uid,
GError *error = NULL;
/* Set up /var/run/gdm */
- if (!ensure_dir_with_perms (GDM_RAN_ONCE_MARKER_DIR, 0, gid, (S_IRWXU | S_IRWXG), &error)) {
+ if (!ensure_dir_with_perms (GDM_RAN_ONCE_MARKER_DIR, 0, gid, 0711, &error)) {
gdm_fail (_("Failed to create ran once marker dir %s: %s"),
GDM_RAN_ONCE_MARKER_DIR, error->message);
}
/* Set up /var/gdm */
- if (!ensure_dir_with_perms (AUTHDIR, uid, gid, (S_IRWXU | S_IRWXG | S_ISVTX), &error)) {
+ if (!ensure_dir_with_perms (AUTHDIR, uid, gid, 0711, &error)) {
gdm_fail (_("Failed to create AuthDir %s: %s"),
AUTHDIR, error->message);
}
/* Set up /var/log/gdm */
- if (!ensure_dir_with_perms (LOGDIR, 0, gid, (S_IRWXU | S_IRWXG | S_ISVTX), &error)) {
+ if (!ensure_dir_with_perms (LOGDIR, 0, gid, 0711, &error)) {
gdm_fail (_("Failed to create LogDir %s: %s"),
LOGDIR, error->message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]