소스 검색

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

svn: 1005
Bryan Drewery 22 년 전
부모
커밋
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)) {