@@ -665,7 +665,7 @@ int TarUnpacker::tarHeaderCallBack( TAR::header_translated_t *header, CC_UNUSED
665665 log_v (" [TAR] Creating %s" , tar_file_path);
666666 }
667667
668- untarredFile = tarFS->open (tar_file_path, fs_file_wplus );
668+ untarredFile = tarFS->open (tar_file_path, fs_file_write );
669669 if (!untarredFile) {
670670 log_e (" [ERROR] in tarHeaderCallBack: Could not open [%s] for write, filesystem full?" , tar_file_path);
671671 setError ( ESP32_TARGZ_FS_ERROR );
@@ -1493,7 +1493,7 @@ bool GzUnpacker::gzExpander( fs_FS sourceFS, const char* sourceFile, fs_FS destF
14931493 log_v (" [GZ INFO] Deleting %s as it is in the way" , destFile);
14941494 destFS.remove ( destFile );
14951495 }
1496- fs_File outfile = destFS.open ( destFile, fs_file_wplus );
1496+ fs_File outfile = destFS.open ( destFile, fs_file_write );
14971497 if (!outfile) {
14981498 log_e (" [GZ ERROR] in gzExpander: cannot create destination file, no space left on device ?" );
14991499 gz.close ();
@@ -1591,7 +1591,7 @@ bool GzUnpacker::gzStreamExpander( Stream* sourceStream, fs_FS destFS, const cha
15911591 log_v (" [GZ INFO] Deleting %s as it is in the way" , destFile);
15921592 destFS.remove ( destFile );
15931593 }
1594- fs_File outFile = destFS.open (destFile, fs_file_wplus );
1594+ fs_File outFile = destFS.open (destFile, fs_file_write );
15951595 if (!outFile) {
15961596 log_e (" [GZ ERROR] in gzExpander: cannot create destination file, no space left on device ?" );
15971597 setError ( ESP32_TARGZ_UZLIB_INVALID_FILE );
0 commit comments