diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-12-04 16:15:27 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-12-04 16:15:27 -0500 |
| commit | b697d0594268023c24db5855130f8f6af28b250b (patch) | |
| tree | 16405e14f93b74dd0e5dec07ac346a05bdf8cf06 /src/sanity.c | |
| parent | d88ccc4bd4c74c902497541e5be0c685396f5cc8 (diff) | |
| download | alftools-b697d0594268023c24db5855130f8f6af28b250b.tar.gz | |
alf and unalf: Detect dup Atari filenames.
Diffstat (limited to 'src/sanity.c')
| -rw-r--r-- | src/sanity.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sanity.c b/src/sanity.c index df3cbe2..c542aec 100644 --- a/src/sanity.c +++ b/src/sanity.c @@ -1,6 +1,7 @@ #include <stdio.h> #include <string.h> #include "u816.h" +#include "dupname.h" extern const char *self; @@ -64,6 +65,9 @@ void sanity_check_filename(const char *fname) { bad_atari_filename(fname, "invalid characters."); else if(uscore) fprintf(stderr, "%s: filename has underscore, OK on Sparta/MyDOS, not Atari DOS 2.x\n", self); -} - + if(is_dup_filename(fname)) { + fprintf(stderr, "%s: warning: duplicate Atari filename %s\n", + self, fname); + } +} |
