summaryrefslogtreecommitdiff
path: root/src/main-utils.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-09-28 14:50:01 +0200
committerAntonio Cardace <acardace@redhat.com>2020-09-28 16:07:52 +0200
commit740b092fda3d5f45102422f22884c88ea6c42858 (patch)
tree5a049cc10c99efb5ee39606b8b1d0893a9f46db3 /src/main-utils.c
parent328fb90f3e0d4e35975aff63944ac0412d7893a5 (diff)
downloadNetworkManager-ac/clang-format.tar.gz
format: replace tabs for indentation in code commentsac/clang-format
sed -i \ -e 's/^'$'\t'' \*/ */g' \ -e 's/^'$'\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t\t\t'' \*/ */g' \ $(git ls-files -- '*.[hc]')
Diffstat (limited to 'src/main-utils.c')
-rw-r--r--src/main-utils.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main-utils.c b/src/main-utils.c
index c6f95a11f2..c425195756 100644
--- a/src/main-utils.c
+++ b/src/main-utils.c
@@ -142,8 +142,8 @@ nm_main_utils_ensure_rundir()
}
/* NM_CONFIG_DEVICE_STATE_DIR is used to determine whether NM is restarted or not.
- * It is important to set NMConfigCmdLineOptions.first_start before creating
- * the directory. */
+ * It is important to set NMConfigCmdLineOptions.first_start before creating
+ * the directory. */
nm_assert(g_str_has_prefix(NM_CONFIG_DEVICE_STATE_DIR, NMRUNDIR "/"));
if (g_mkdir(NM_CONFIG_DEVICE_STATE_DIR, 0755) != 0) {
errsv = errno;
@@ -236,16 +236,16 @@ nm_main_utils_early_setup(const char * progname,
const char ** opt_loc_log_level = NULL, **opt_loc_log_domains = NULL;
/* Make GIO ignore the remote VFS service; otherwise it tries to use the
- * session bus to contact the remote service, and NM shouldn't ever be
- * talking on the session bus. See rh #588745
- */
+ * session bus to contact the remote service, and NM shouldn't ever be
+ * talking on the session bus. See rh #588745
+ */
setenv("GIO_USE_VFS", "local", 1);
/*
- * Set the umask to 0022, which results in 0666 & ~0022 = 0644.
- * Otherwise, if root (or an su'ing user) has a wacky umask, we could
- * write out an unreadable resolv.conf.
- */
+ * Set the umask to 0022, which results in 0666 & ~0022 = 0644.
+ * Otherwise, if root (or an su'ing user) has a wacky umask, we could
+ * write out an unreadable resolv.conf.
+ */
umask(022);
/* Ensure gettext() gets the right environment (bgo #666516) */