diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-11-01 17:32:43 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-11-01 17:32:43 +0800 |
commit | 5efe73ab2cba625a8c6558a667f784ae211f013d (patch) | |
tree | 9415f35aefba0593ee579acf1ecd9bbd87a23246 | |
parent | f1c8d4d49f880c49a31525fb5f6cf6cddfd9ee25 (diff) | |
download | pttbbs-5efe73ab2cba625a8c6558a667f784ae211f013d.tar pttbbs-5efe73ab2cba625a8c6558a667f784ae211f013d.tar.gz pttbbs-5efe73ab2cba625a8c6558a667f784ae211f013d.tar.bz2 pttbbs-5efe73ab2cba625a8c6558a667f784ae211f013d.tar.lz pttbbs-5efe73ab2cba625a8c6558a667f784ae211f013d.tar.xz pttbbs-5efe73ab2cba625a8c6558a667f784ae211f013d.tar.zst pttbbs-5efe73ab2cba625a8c6558a667f784ae211f013d.zip |
ignore if no archive index
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5198 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/util/timecap_buildref.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pttbbs/util/timecap_buildref.c b/pttbbs/util/timecap_buildref.c index 669143ee..5d43ec3d 100644 --- a/pttbbs/util/timecap_buildref.c +++ b/pttbbs/util/timecap_buildref.c @@ -31,8 +31,9 @@ int main(int argc, char **argv) snprintf(archive_path, sizeof(archive_path), "%s/%s", dirpath, TIME_CAPSULE_ARCHIVE_INDEX_NAME); - if (!dashs(archive_path)) { - fprintf(stderr, "missing time capsule archive: %s\n", archive_path); + if (dashs(archive_path) <= 0) { + // no archive. abort. + // fprintf(stderr, "missing time capsule archive: %s\n", archive_path); return 1; } |