[Samba] How to see loging of the user

Sebastian Held sebastian.held at gmx.de
Tue Jan 3 15:07:17 GMT 2006


Am Dienstag, 3. Januar 2006 15:43 schrieb Sebastian Held:
> see attached patch for the last-command.
yeah, it stripped my patch...

inline version:
--- last.orig   2004-07-30 14:16:26.000000000 +0200
+++ last.c      2006-01-03 15:35:26.000000000 +0100
@@ -451,13 +451,13 @@
 #endif
                if (!altlist) {
                        snprintf(final, sizeof(final),
-                               "%-8.8s %-12.12s %-16.16s "
+                               "%-8s %-12.12s %-16.16s "
                                "%-16.16s %-7.7s %-12.12s\n",
                                p->ut_name, utline,
                                domain, logintime, logouttime, length);
                } else {
                        snprintf(final, sizeof(final),
-                               "%-8.8s %-12.12s %-16.16s %-7.7s %-12.12s 
%s\n",
+                               "%-8s %-12.12s %-16.16s %-7.7s %-12.12s %s\n",
                                p->ut_name, utline,
                                logintime, logouttime, length, domain);
                }



br,
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20060103/89acd03a/attachment.bin


More information about the samba mailing list