summaryrefslogtreecommitdiffstats
path: root/pw
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1997-07-17 08:37:47 +0000
committerDavid Nugent <davidn@FreeBSD.org>1997-07-17 08:37:47 +0000
commit959488551e7b86ef6969fe4943feab59d48d2786 (patch)
treeebf3e2826b0b8339443c54883057ac13c6af01b5 /pw
parent22060d1c913540c92cccb50c8037b8ab8cefe8d7 (diff)
downloadpw-darwin-959488551e7b86ef6969fe4943feab59d48d2786.tar.gz
pw-darwin-959488551e7b86ef6969fe4943feab59d48d2786.tar.zst
pw-darwin-959488551e7b86ef6969fe4943feab59d48d2786.zip
getuid() -> geteuid().
Diffstat (limited to 'pw')
-rw-r--r--pw/pw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pw/pw.c b/pw/pw.c
index 0f67941..6333322 100644
--- a/pw/pw.c
+++ b/pw/pw.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: pw.c,v 1.5 1997/02/22 16:12:25 peter Exp $
*/
#include "pw.h"
@@ -138,7 +138,7 @@ main(int argc, char *argv[])
/*
* Must be root to attempt an update
*/
- if (getuid() != 0 && mode != M_PRINT && mode != M_NEXT && getarg(&arglist, 'N')==NULL)
+ if (geteuid() != 0 && mode != M_PRINT && mode != M_NEXT && getarg(&arglist, 'N')==NULL)
cmderr(EX_NOPERM, "you must be root to run this program\n");
/*