c4851e78e4
ever. It fixes many bugs, and adds some features missing in previous FreeBSD ports. To help users upgrade from GNOME 2.4, we have constructed an upgrade FAQ at: http://www.freebsd.org/gnome/docs/faq26.html Please read it carefully. GNOME 2.6 packages are also available for all supported i386 versions of FreeBSD at: http://www.marcuscom.com/tinderbox/ The FreeBSD GNOME Team would like the thank the following users for their wonderful testing and patching efforts. We would especially like to thank Franz Klammer <klammer@webonaut.com> for his wonderful new splash screen. Without these people, our team, and our team alumni, GNOME on FreeBSD would not be possible. Jeremy Messenger <mezz7@cox.net> Khairil Yusof <kaeru@pd.jaring.my> Koop Mast <kwm@rainbow-runner.nl> Simon Barner <barner@in.tum.de> Tom McLaughlin <tmclaugh@sdf.lonestar.org> Scott Dodson <sdodson@sdodson.com> Vladimir Grebenschikov <vova@sw.ru>
34 lines
839 B
C
34 lines
839 B
C
--- src/util.c.orig Fri Dec 12 02:26:57 2003
|
|
+++ src/util.c Fri Dec 12 02:35:38 2003
|
|
@@ -16,6 +16,7 @@
|
|
|
|
#ifdef __FreeBSD__
|
|
# include <errno.h>
|
|
+# include <termios.h>
|
|
# include <libutil.h>
|
|
#endif
|
|
|
|
@@ -181,7 +182,11 @@
|
|
* Make su think we're sending the password from a terminal:
|
|
*/
|
|
|
|
+#ifndef __FreeBSD__
|
|
if (((t_fd = OPEN_TTY()) < 0) || (grantpt(t_fd) < 0) || (unlockpt(t_fd) < 0)) {
|
|
+#else
|
|
+ if ((t_fd = OPEN_TTY()) < 0) {
|
|
+#endif
|
|
fprintf (stderr, "Unable to open a terminal\n");
|
|
ABORT (root);
|
|
}
|
|
@@ -259,7 +264,11 @@
|
|
}
|
|
}
|
|
|
|
+#ifndef __FreeBSD__
|
|
if(((pts = ptsname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) {
|
|
+#else
|
|
+ if (((pts = ttyname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) {
|
|
+#endif
|
|
perror ("Unable to open pseudo slave terminal");
|
|
_exit (-1);
|
|
}
|