summaryrefslogtreecommitdiff
path: root/misc/orville-write/files/patch-lib_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/orville-write/files/patch-lib_common.c')
-rw-r--r--misc/orville-write/files/patch-lib_common.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/misc/orville-write/files/patch-lib_common.c b/misc/orville-write/files/patch-lib_common.c
new file mode 100644
index 000000000000..00db6944cf73
--- /dev/null
+++ b/misc/orville-write/files/patch-lib_common.c
@@ -0,0 +1,19 @@
+--- lib_common.c.orig 2010-02-02 22:34:36.829638978 -0800
++++ lib_common.c 2010-02-02 22:36:28.170798539 -0800
+@@ -141,13 +141,13 @@
+ * fail. The tty name need not be null terminated.
+ */
+
+-struct utmp *find_utmp(char *tty)
++struct utmpx *find_utmp(char *tty)
+ {
+-struct utmp tmputmp;
++struct utmpx tmputmp;
+
+ strncpy(tmputmp.ut_line, tty, UT_LINESIZE);
+ setutent(); /* open and/or rewind */
+- return getutline(&tmputmp);
++ return getutxline(&tmputmp);
+ }
+
+