summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-03-19 11:36:25 -0400
committerRyan Lortie <desrt@desrt.ca>2012-03-19 11:36:25 -0400
commitef21f2906e94c331c63e3bee4baa1b9d415ee0ae (patch)
tree01a7079631b380c6ecc3af32b2d1e00fddc652b0
parent1ce11b2802c915b7e4c9c8d7f1d2862982335406 (diff)
downloaddconf-ef21f2906e94c331c63e3bee4baa1b9d415ee0ae.tar.gz
dconf update: ignore dotfiles
This prevents trying to read editor swap files as if they were keyfiles.
-rw-r--r--bin/dconf-update.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/dconf-update.vala b/bin/dconf-update.vala
index 1517e78..434b022 100644
--- a/bin/dconf-update.vala
+++ b/bin/dconf-update.vala
@@ -50,6 +50,10 @@ SList<string>? list_directory (string dirname, Posix.mode_t mode) {
unowned string? name;
while ((name = dir.read_name ()) != null) {
+ if (name.has_prefix (".")) {
+ continue;
+ }
+
var filename = Path.build_filename (dirname, name);
Posix.Stat buf;