summaryrefslogtreecommitdiffstats
path: root/cmds/rawbu/backup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/rawbu/backup.cpp')
-rw-r--r--cmds/rawbu/backup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/rawbu/backup.cpp b/cmds/rawbu/backup.cpp
index 394ce41..c4fa765 100644
--- a/cmds/rawbu/backup.cpp
+++ b/cmds/rawbu/backup.cpp
@@ -318,7 +318,7 @@ static int backup_dir(FILE* fh, const char* srcPath)
result = 0;
goto done;
}
- } else {
+ } else if (S_ISREG(statBuffer.st_mode)) {
printf("Saving file %s...\n", fullPath);
if (write_header(fh, TYPE_FILE, fullPath, &statBuffer) == 0) {