summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org.ua>2009-03-12 19:08:49 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2009-03-12 19:08:49 (GMT)
commite76d8e000bfa184d9ae79e620ffeec7cefab7fd8 (patch) (side-by-side diff)
tree44a2bf50c595f0e0f7b616d7a362d020a3758a54 /src
parent43e8d1ad415cd8af7f56f0346097dd2882e23628 (diff)
downloadwydawca-e76d8e000bfa184d9ae79e620ffeec7cefab7fd8.tar.gz
wydawca-e76d8e000bfa184d9ae79e620ffeec7cefab7fd8.tar.bz2
Bugfix
* src/triplet.c (check_triplet_state): Verify the directive file only if it already exists.
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/triplet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/triplet.c b/src/triplet.c
index 24ab611..0ddf997 100644
--- a/src/triplet.c
+++ b/src/triplet.c
@@ -124,17 +124,17 @@ enum triplet_state
};
static enum triplet_state
check_triplet_state (struct file_triplet *trp)
{
- if (verify_directive_file (trp, trp->spool))
- return triplet_bad;
-
if (trp->file[file_directive].name)
{
+ if (verify_directive_file (trp, trp->spool))
+ return triplet_bad;
+
if (trp->file[file_dist].name == 0
&& trp->file[file_signature].name == 0)
{
if (directive_get_value (trp, "filename", NULL))
return triplet_directive;
}

Return to:

Send suggestions and report system problems to the System administrator.