@@ -217,12 +217,16 @@ FILE *File::read_pipe (Internal *internal, const char *fmt, const int *sig,
217
217
return open_pipe (internal, fmt, path, " r" );
218
218
}
219
219
220
+ #ifndef SAFE
221
+
220
222
FILE *File::write_pipe (Internal *internal, const char *fmt,
221
223
const char *path) {
222
224
MSG (" opening pipe to write '%s'" , path);
223
225
return open_pipe (internal, fmt, path, " w" );
224
226
}
225
227
228
+ #endif
229
+
226
230
/* ------------------------------------------------------------------------*/
227
231
228
232
File *File::read (Internal *internal, FILE *f, const char *n) {
@@ -268,6 +272,7 @@ File *File::read (Internal *internal, const char *path) {
268
272
File *File::write (Internal *internal, const char *path) {
269
273
FILE *file;
270
274
int close_input = 2 ;
275
+ #ifndef SAFE
271
276
if (has_suffix (path, " .xz" ))
272
277
file = write_pipe (internal, " xz -c > %s" , path);
273
278
else if (has_suffix (path, " .bz2" ))
@@ -278,6 +283,7 @@ File *File::write (Internal *internal, const char *path) {
278
283
file = write_pipe (internal, " 7z a -an -txz -si -so > %s 2>/dev/null" ,
279
284
path);
280
285
else
286
+ #endif
281
287
file = write_file (internal, path), close_input = 1 ;
282
288
283
289
return file ? new File (internal, true , close_input, file, path) : 0 ;
0 commit comments