repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 4455ec7f1f8fb52068ec949f9762837f403c29af: path_to: revision_to:
commit 4455ec7f1f8fb52068ec949f9762837f403c29af Author: Marc LehmannDate: Wed Jan 25 22:09:33 2006 +0000 *** empty log message *** diff --git a/config.h.in b/config.h.in
--- a/config.h.in +++ b/config.h.in @@ -114,6 +114,9 @@ /* Define to 1 if you have the `setreuid' function. */ #undef HAVE_SETREUID +/* Define to 1 if you have the `setuid' function. */ +#undef HAVE_SETUID + /* Define to 1 if you have the `setutent' function. */ #undef HAVE_SETUTENT diff --git a/configure b/configure
--- a/configure +++ b/configure @@ -9952,15 +9952,9 @@ _ACEOF - - - for ac_func in \ unsetenv \ setutent \ - seteuid \ - setresuid \ - setreuid \ on_exit \ do @@ -12246,12 +12240,20 @@ done + + + + for ac_func in \ revoke \ _getpty \ getpt \ posix_openpt \ isastream \ + setuid \ + seteuid \ + setreuid \ + setresuid \ do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` diff --git a/configure.ac b/configure.ac
--- a/configure.ac +++ b/configure.ac @@ -654,9 +654,6 @@ dnl> AC_FUNC_VPRINTF AC_CHECK_FUNCS( \ unsetenv \ setutent \ - seteuid \ - setresuid \ - setreuid \ on_exit \ ) diff --git a/ptytty.m4 b/ptytty.m4
--- a/ptytty.m4 +++ b/ptytty.m4 @@ -17,6 +17,10 @@ AC_CHECK_FUNCS( \ getpt \ posix_openpt \ isastream \ + setuid \ + seteuid \ + setreuid \ + setresuid \ ) have_clone=no diff --git a/src/proxy.C b/src/proxy.C
--- a/src/proxy.C +++ b/src/proxy.C @@ -328,6 +328,8 @@ ptytty::drop_privileges () #elif HAVE_SETUID setgid (gid); setuid (uid); +#else +# error no way to drop privileges, configure failed? #endif if (uid != geteuid ()
-----END OF PAGE-----