X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpt_chown.c;h=8ecaa902cb95b8a0be49c01d500a5743210653e0;hb=8d8bbae775e3c77070161dafc81c0c2dbba0fef4;hp=d79ad3a87ca2405c8682df1de9fe6c31cb2a49ba;hpb=eae8e44ccfca3e367df3be11c3f5de48c4302093;p=gnulib.git diff --git a/lib/pt_chown.c b/lib/pt_chown.c index d79ad3a87..8ecaa902c 100644 --- a/lib/pt_chown.c +++ b/lib/pt_chown.c @@ -25,7 +25,6 @@ #include #include -#include "idpriv.h" #include "pty-private.h" /* For security reasons, we try to minimize the dependencies on libraries @@ -83,9 +82,8 @@ main (int argc, char *argv[]) return do_pt_chown (); } - /* We aren't going to be using privileges, so drop them right now. */ - if (idpriv_drop () < 0) - return EXIT_FAILURE; + /* It would be possible to drop setuid/setgid privileges here. But it is not + really needed, since the code below only calls strcmp and [f]printf. */ { int do_help = 0;