projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
[gnulib.git]
/
lib
/
pt_chown.c
diff --git
a/lib/pt_chown.c
b/lib/pt_chown.c
index
d79ad3a
..
ccc04fd
100644
(file)
--- a/
lib/pt_chown.c
+++ b/
lib/pt_chown.c
@@
-1,5
+1,5
@@
/* pt_chown - helper program for `grantpt'.
/* pt_chown - helper program for `grantpt'.
- Copyright (C) 1998
, 1999, 2009, 2010
Free Software Foundation, Inc.
+ Copyright (C) 1998
-1999, 2009-2011
Free Software Foundation, Inc.
Contributed by C. Scott Ananian <cananian@alumni.princeton.edu>, 1998.
This program is free software: you can redistribute it and/or modify
Contributed by C. Scott Ananian <cananian@alumni.princeton.edu>, 1998.
This program is free software: you can redistribute it and/or modify
@@
-25,7
+25,6
@@
#include <sys/stat.h>
#include <unistd.h>
#include <sys/stat.h>
#include <unistd.h>
-#include "idpriv.h"
#include "pty-private.h"
/* For security reasons, we try to minimize the dependencies on libraries
#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 ();
}
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;
{
int do_help = 0;