Fabio Scotto di Santolo 1ddc085160 Skip unreadable directories instead of aborting the snapshot
opendir() failing with EACCES now warns on stderr and lets the walk carry
on with the rest of the tree. The record for the directory itself is still
written, since the operation runs before the recursion, so its metadata
survives even when its contents cannot be listed. Every other opendir
error still propagates.

Also check the return value of fprintf when writing a record, close the
descriptor when fdopen fails, and move the strings.h include to the file
that actually calls strcasecmp.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mbj1ZPUEhxqMYKsK7Y7jkt
2026-08-01 21:26:09 +02:00
2026-08-01 14:27:52 +02:00
2026-07-31 14:40:53 +02:00
2026-08-01 14:27:52 +02:00
2026-07-31 14:40:53 +02:00

fsnap

fsnap is a command-line tool written in C that creates snapshots of directory trees and detects filesystem changes over time. It records file metadata such as type, permissions, ownership, size, timestamps, inode information, hard links, and symbolic links. Snapshots can be listed, compared, and verified against the current filesystem state.

Description
No description provided
Readme GPL-3.0 213 KiB
Languages
C 63.2%
Shell 31.3%
Makefile 3.8%
Dockerfile 1.7%