Definition at line 42 of file zip_set_name.c.
90 if (!same_as_orig &&
e->changes ==
NULL) {
104 old_str =
e->changes->filename;
107 old_str =
e->orig->filename;
136 if (
e->changes->changed == 0) {
142 e->changes->filename =
e->orig->filename;
153 e->changes->filename =
str;
ZIP_EXTERN void zip_error_set(zip_error_t *_Nullable, int, int)
static struct sockaddr static addrlen static backlog const void static flags void flags
zip_dirent_t * _zip_dirent_clone(const zip_dirent_t *sde)
void _zip_dirent_free(zip_dirent_t *zde)
bool _zip_hash_delete(zip_hash_t *hash, const zip_uint8_t *name, zip_error_t *error)
bool _zip_hash_add(zip_hash_t *hash, const zip_uint8_t *name, zip_uint64_t index, zip_flags_t flags, zip_error_t *error)
zip_int64_t _zip_name_locate(zip_t *za, const char *fname, zip_flags_t flags, zip_error_t *error)
zip_string_t * _zip_string_new(const zip_uint8_t *raw, zip_uint16_t length, zip_flags_t flags, zip_error_t *error)
void _zip_string_free(zip_string_t *s)
const zip_uint8_t * _zip_string_get(zip_string_t *string, zip_uint32_t *lenp, zip_flags_t flags, zip_error_t *error)
int _zip_string_equal(const zip_string_t *a, const zip_string_t *b)
zip_encoding_type_t _zip_guess_encoding(zip_string_t *str, zip_encoding_type_t expected_encoding)
#define ZIP_IS_RDONLY(za)
#define ZIP_DIRENT_FILENAME
#define ZIP_FL_ENCODING_ALL
@ ZIP_ENCODING_UTF8_GUESSED
@ ZIP_ENCODING_UTF8_KNOWN
References _zip_dirent_clone(), _zip_dirent_free(), _zip_guess_encoding(), _zip_hash_add(), _zip_hash_delete(), _zip_name_locate(), _zip_string_equal(), _zip_string_free(), _zip_string_get(), _zip_string_new(), e, zip::entry, zip::error, flags, i, setup::idx, zip::names, zip::nentry, NULL, cmd_descs_generate::str, za, ZIP_DIRENT_FILENAME, ZIP_ENCODING_UNKNOWN, ZIP_ENCODING_UTF8_GUESSED, ZIP_ENCODING_UTF8_KNOWN, ZIP_ER_EXISTS, ZIP_ER_INVAL, ZIP_ER_MEMORY, ZIP_ER_RDONLY, zip_error_set(), ZIP_FL_ENC_GUESS, ZIP_FL_ENCODING_ALL, and ZIP_IS_RDONLY.
Referenced by _zip_file_replace(), and zip_file_rename().