diff options
author | Not Zed <NotZed@Ximian.com> | 2004-01-15 14:12:19 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-01-15 14:12:19 +0800 |
commit | bbdcea50101fdf73c85a422af5e06c91d4204334 (patch) | |
tree | 67ba9cf63f01f00f0ecdb449902c93802693665f /shell/e-config-upgrade.c | |
parent | 26f971004070ba13a3e3570a2c12b676e5d3d238 (diff) | |
download | gsoc2013-evolution-bbdcea50101fdf73c85a422af5e06c91d4204334.tar.gz gsoc2013-evolution-bbdcea50101fdf73c85a422af5e06c91d4204334.tar.zst gsoc2013-evolution-bbdcea50101fdf73c85a422af5e06c91d4204334.zip |
fix the check for ~/evolution being a directory.
2004-01-15 Not Zed <NotZed@Ximian.com>
* e-config-upgrade.c (e_upgrade_detect_version): fix the check for
~/evolution being a directory.
svn path=/trunk/; revision=24232
Diffstat (limited to 'shell/e-config-upgrade.c')
-rw-r--r-- | shell/e-config-upgrade.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/e-config-upgrade.c b/shell/e-config-upgrade.c index 34331987ab..7c51adf5ec 100644 --- a/shell/e-config-upgrade.c +++ b/shell/e-config-upgrade.c @@ -1865,7 +1865,7 @@ e_upgrade_detect_version (int *major, int *minor, int *revision) /* Since 1.4.0 We've been keeping the version key in gconf */ sscanf(val, "%u.%u.%u", major, minor, revision); g_free(val); - } else if (lstat(filename, &st) != 0 && S_ISDIR(st.st_mode)) { + } else if (lstat(filename, &st) != 0 || !S_ISDIR(st.st_mode)) { /* If ~/evolution does not exit or is not a directory it must be a new installation */ *major = 0; *minor = 0; |