Lines Matching refs:output_path
442 const char *input_path, *output_path, *name; in verb_encrypt() local
462 output_path = empty_or_dash(argv[2]) ? NULL : argv[2]; in verb_encrypt()
468 else if (output_path) { in verb_encrypt()
469 r = path_extract_filename(output_path, &fname); in verb_encrypt()
471 … return log_error_errno(r, "Failed to extract filename from '%s': %m", output_path); in verb_encrypt()
473 … log_error_errno(SYNTHETIC_ERRNO(EISDIR), "Path '%s' refers to directory, refusing.", output_path); in verb_encrypt()
522 if (output_path) in verb_encrypt()
523 … r = write_string_file(output_path, base64_buf, WRITE_STRING_FILE_ATOMIC|WRITE_STRING_FILE_CREATE); in verb_encrypt()
536 const char *input_path, *output_path, *name; in verb_decrypt() local
555 output_path = (argc < 3 || isempty(argv[2]) || streq(argv[2], "-")) ? NULL : argv[2]; in verb_decrypt()
585 if (output_path) { in verb_decrypt()
586 output_file = fopen(output_path, "we"); in verb_decrypt()
588 … return log_error_errno(errno, "Failed to create output file '%s': %m", output_path); in verb_decrypt()