OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/lmtp2nntp_config.c versions 1.26 and 1.27
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.26 -> 1.27

--- lmtp2nntp_config.c   2002/01/31 14:43:52     1.26
+++ lmtp2nntp_config.c   2002/01/31 14:47:13     1.27
@@ -496,6 +496,23 @@
     }
     catch (ex)
         rethrow;
+
+    /* --nodename SINGLE */
+    try {
+        if (   (val_get(ctx->val, "option.nodename", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.s == NULL)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--nodename = \"%s\"", ov->data.s);
+
+        if (strlen(optarg) > sizeof(ctx->uname.nodename)-1) {
+            log1(ctx, ERROR, "option --nodename, name (%s) too long", ov->data.s);
+            throw(0,0,0);
+        }
+        strcpy(ctx->uname.nodename, ov->data.s);
+    }
+    catch (ex)
+        rethrow;
 CUS:
     return;
 }

CVSTrac 2.0.1