mirror of
https://github.com/fscotto/fsnap.git
synced 2026-11-26 03:09:51 +00:00
New feature list with record validation
This commit is contained in:
@@ -46,10 +46,13 @@ int main(int argc, char *argv[]) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
const char *snapshot = argv[2];
|
||||
if (list(snapshot) == -1) {
|
||||
int ret = list(snapshot);
|
||||
if (ret == -1) {
|
||||
const int err = errno;
|
||||
fprintf(stderr, "list failed: %s\n", strerror(err));
|
||||
return EXIT_FAILURE;
|
||||
} else if (ret > 0) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
} else {
|
||||
fprintf(stderr, "command %s is not valid\n", cmd);
|
||||
|
||||
Reference in New Issue
Block a user