summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-12-19 17:42:26 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-12-19 17:42:26 +0100
commit25d26c56970d9ff18b3b9c33f7130052e4dec23a (patch)
treec2168b56e1bd5f9c369eaa453d2277e2d38c1fb9
parent77c99fe105b074f5b827a159ed4091ced8912f48 (diff)
downloadeurephia-25d26c56970d9ff18b3b9c33f7130052e4dec23a.tar.gz
eurephia-25d26c56970d9ff18b3b9c33f7130052e4dec23a.tar.xz
eurephia-25d26c56970d9ff18b3b9c33f7130052e4dec23a.zip
users command: cosmetic patch for users --show --lastlog
-rw-r--r--eurephiadm/commands/users.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/eurephiadm/commands/users.c b/eurephiadm/commands/users.c
index e226cfd..50f9790 100644
--- a/eurephiadm/commands/users.c
+++ b/eurephiadm/commands/users.c
@@ -339,7 +339,7 @@ void xmlPrint_lastlog(xmlXPathContext *xpathCTX, int verb, const char *xpath) {
printf(" %-37.37s %37.37s\n", "Firewall access profile", "FW Destination");
#endif
}
- printf(" --------------------------------------------------------------------"
+ printf("---------------------------------------------------------------------"
"----------\n");
for( i = 0; i < lastlogObj->nodesetval->nodeNr; i++ ) {
@@ -382,11 +382,13 @@ void xmlPrint_lastlog(xmlXPathContext *xpathCTX, int verb, const char *xpath) {
defaultValue(xmlGetAttrValue(acpr->properties, "fwdestination"), "-")
);
#endif
- printf("\n");
+ if( (i+1) < lastlogObj->nodesetval->nodeNr ) {
+ printf("\n");
+ }
}
}
- printf(" --------------------------------------------------------------------"
+ printf("---------------------------------------------------------------------"
"----------\n");
xmlXPathFreeObject(lastlogObj);