[dconf] dconf update: ignore dotfiles



commit ef21f2906e94c331c63e3bee4baa1b9d415ee0ae
Author: Ryan Lortie <desrt desrt ca>
Date:   Mon Mar 19 11:36:25 2012 -0400

    dconf update: ignore dotfiles
    
    This prevents trying to read editor swap files as if they were keyfiles.

 bin/dconf-update.vala |    4 ++++
 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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]