| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/misc/hxtools/files/ |
Upload File : |
--- sadmin/utmp_register.c.orig 2020-07-12 09:44:16 UTC
+++ sadmin/utmp_register.c
@@ -71,8 +71,10 @@ static bool get_options(int *argc, const char ***argv)
.help = "Perform operation on lastlog"},
{.sh = 'U', .type = HXTYPE_NONE, .ptr = &Opt.op_utmp,
.help = "Perform operation on UTMP"},
+#if 0
{.sh = 'W', .type = HXTYPE_NONE, .ptr = &Opt.op_wtmp,
.help = "Perform operation on WTMP"},
+#endif
{.sh = 'e', .type = HXTYPE_NONE, .ptr = &Opt.epid,
.help = "Encode PID into ut_id"},
{.sh = 'h', .type = HXTYPE_STRING, .ptr = &Opt.host,
@@ -87,8 +89,10 @@ static bool get_options(int *argc, const char ***argv)
.help = "Unique ID 2", .htyp = "sess"},
{.sh = 'u', .type = HXTYPE_STRING, .ptr = &Opt.futmp,
.help = "Path to utmp"},
+#if 0
{.sh = 'w', .type = HXTYPE_STRING, .ptr = &Opt.fwtmp,
.help = "Path to wtmp"},
+#endif
HXOPT_AUTOHELP,
HXOPT_TABLEEND,
};
@@ -181,8 +185,10 @@ static int main2(int argc, const char **argv)
setutxent();
pututxline(&entry);
}
+#if 0
if (Opt.op_wtmp)
updwtmpx(Opt.fwtmp, &entry);
+#endif
if (Opt.op_lastlog)
update_lastlog(Opt.flastlog, &entry);
}
@@ -193,11 +199,13 @@ static int main2(int argc, const char **argv)
setutxent();
pututxline(&entry);
}
+#if 0
if (Opt.op_wtmp)
updwtmpx(Opt.fwtmp, &entry);
+#endif
}
- endutent();
+ endutxent();
return EXIT_SUCCESS;
}