aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sm/sign.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sm/sign.c b/sm/sign.c
index e3f1bd8bd..caf96bfa4 100644
--- a/sm/sign.c
+++ b/sm/sign.c
@@ -752,7 +752,8 @@ gpgsm_sign (ctrl_t ctrl, certlist_t signerlist,
goto leave;
}
#else
- log_info ("Note: option --attribute is ignored by this version\n");
+ if (opt.attributes)
+ log_info ("Note: option --attribute is ignored by this version\n");
#endif /*ksba >= 1.4.0 */