diff options
Diffstat (limited to 'bin/dconf-update.vala')
-rw-r--r-- | bin/dconf-update.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/dconf-update.vala b/bin/dconf-update.vala index 911b8aa..a30ce4b 100644 --- a/bin/dconf-update.vala +++ b/bin/dconf-update.vala @@ -50,6 +50,12 @@ Gvdb.HashTable read_directory (string dirname) throws GLib.Error { var dir = Dir.open (dirname); while ((name = dir.read_name ()) != null) { var filename = Path.build_filename (dirname, name); + Posix.Stat buf; + + // only 'normal' files + if (Posix.stat (filename, out buf) < 0 || !Posix.S_ISREG (buf.st_mode)) { + continue; + } var kf = new KeyFile (); |