mirror of
https://github.com/seregonwar/zftpd.git
synced 2026-10-22 03:32:24 -05:00
Add FTP_ERR_DIR_EXISTS and treat EEXIST-as-success in MKD to avoid aborting concurrent directory uploads (prevents FileZilla from failing when another thread created the dir). Map EEXIST to FTP_ERR_DIR_EXISTS in pal_dir_create. Implement EXDEV fallback in pal_file_rename (atomic copy + unlink) and refactor pal_file_copy_atomic with safe temp filenames, atomic counter, EINTR handling and proper cleanup. Improve pal_sendfile portability/formatting across platforms and tidy many PAL file I/O helpers (error mapping, parameter validation, consistent style). Misc: add /docs to .gitignore and adjust Makefile ENABLE_ZHTTPD default behavior. Includes whitespace/formatting cleanups and small include reorderings.