From f4c314c345f73e5c87a36b88a64e4d39a740ace5 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 2 Aug 2007 13:54:17 +0000 Subject: [PATCH] inconsequential changes --- ptytty.m4 | 4 ++-- src/libptytty.h | 2 +- src/proxy.C | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ptytty.m4 b/ptytty.m4 index 379480c0..e7f6cb66 100644 --- a/ptytty.m4 +++ b/ptytty.m4 @@ -306,7 +306,7 @@ AC_CACHE_CHECK(where wtmp is located, path_wtmp, main() { char **w, *wtmplist[] = { - "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; + "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; FILE *a, *f=fopen("conftestval", "w"); if (!f) exit(1); #ifdef WTMP_FILE @@ -342,7 +342,7 @@ AC_CACHE_CHECK(where wtmpx is located, path_wtmpx, main() { char **w, *wtmplist[] = { - "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; + "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; FILE *a, *f=fopen("conftestval", "w"); if (!f) exit(1); #ifdef WTMPX_FILE diff --git a/src/libptytty.h b/src/libptytty.h index 0dad6a4e..2a644a4f 100644 --- a/src/libptytty.h +++ b/src/libptytty.h @@ -9,7 +9,7 @@ // C++ API struct ptytty { - int pty; // pty file descriptor; connected to rxvt + int pty; // pty file descriptor; connected to terminal emulator int tty; // tty file descriptor; connected to child virtual ~ptytty () diff --git a/src/proxy.C b/src/proxy.C index 81f3557c..887f41ce 100644 --- a/src/proxy.C +++ b/src/proxy.C @@ -321,7 +321,7 @@ ptytty::init () uid_t uid = getuid (); gid_t gid = getgid (); - + // before doing anything else, check for setuid/setgid operation, // start the helper process and drop privileges if (uid != geteuid () -- 2.34.1