Author Topic: ignoreAccessDenied dont work  (Read 348 times)

ureasd

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
ignoreAccessDenied dont work
« on: February 01, 2018, 06:11:51 PM »
Code: [Select]
   ChilkatLog:
      AppendFiles:
        DllDate: Jan 13 2018
        ChilkatVersion: 9.5.0.71
        UnlockPrefix: Anything for 30-day trial
        Architecture: Little Endian; 32-bit
        Language: Linux C/C++
        VerboseLogging: 0
        appendFileEx:
          FilePattern: ../*
          AppendFromDir: .
          PathPrefix:
          BaseDir: ./../
          InzipBase: ../
          FilenamePart: *
          IsSpecificFile: 0
          recurse: 1
          saveExtraPath: 0
          archiveOnly: 0
          includeHidden: 1
          includeSystem: 1
          ignoreAccessDenied: 1
          addFilesMax:
            addDirNonRecursive2:
              errno: 13
              osErrorMessage: Permission denied
              Failed to opendir
              path: ./../root
            --addDirNonRecursive2
          --addFilesMax
          Failed to add files.
        --appendFileEx
        Failed.
      --AppendFiles
    --ChilkatLog
How prevert it? How ignore files & patchs with no access and continue work with valid patches recurse?


https://gist.github.com/anonymous/ba579ad89b578dd9126c0994fba527da code

Chilkat

  • Administrator
  • Jr. Member
  • *****
  • Posts: 97
  • Karma: +5/-0
    • View Profile
Re: ignoreAccessDenied dont work
« Reply #1 on: February 02, 2018, 10:02:00 AM »
Make sure to set IgnoreAccessDenied before calling AppendFiles.

ureasd

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: ignoreAccessDenied dont work
« Reply #2 on: February 02, 2018, 08:03:40 PM »
There are same error
In first post u can see
          ignoreAccessDenied: 1
im also add zip.put_IgnoreAccessDenied(true);
before and after success = zip.AppendFiles("../*",true);
Same error

Code: [Select]
void ChilkatSample(void){
CkZip zip;
bool success;
//  Any string unlocks the component for the 1st 30-days.
success = zip.UnlockComponent("Anything for 30-day trial");
if (success != true) {
SERVER_PRINT(UTIL_VarArgs("\n1 %s\n",zip.lastErrorText()));
return;
}
success = zip.NewZip("test2.zip");
if (success != true) {
SERVER_PRINT(UTIL_VarArgs("\n2 %s\n",zip.lastErrorText()));
return;
}
bool recurse = true;
zip.put_IgnoreAccessDenied(true);
success = zip.AppendFiles("../*",true);
zip.put_IgnoreAccessDenied(true);
if (success != true) {
SERVER_PRINT(UTIL_VarArgs("\n3 %s\n",zip.lastErrorText()));
}
bool success2 = zip.WriteZipAndClose();
if (success2 != true) {
SERVER_PRINT(UTIL_VarArgs("\n4 %s\n",zip.lastErrorText()));
return;
}
}


Can u check library?