Просмотр исходного кода

* Dont check fixmod() if !canstat() for cfile

svn: 1005
Bryan Drewery 22 лет назад
Родитель
Сommit
e2d25d78da
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/main.c

+ 1 - 0
doc/UPDATES

@@ -3,6 +3,7 @@ This is a summary of ChangeLog basically.
 1.1.8
 
 1.Fixed cosmetic error in help:decrypt.
+2.Fixed a chmod() problem when the config was missing.
 
 1.1.7
 

+ 1 - 1
src/main.c

@@ -523,7 +523,7 @@ static void startup_checks() {
    else if (!can_stat(cfile))
      werr(ERR_NOCONF);
   */
-  else if (fixmod(cfile))
+  else if (canstat(cfile) && fixmod(cfile))
     werr(ERR_CONFMOD);
 
   if (!can_stat(tempdir)) {