summaryrefslogtreecommitdiff
path: root/vtysh
diff options
context:
space:
mode:
authorajs <ajs>2004-12-09 15:15:03 +0000
committerajs <ajs>2004-12-09 15:15:03 +0000
commit09c3adb9e9f41d4698025e3a70cfa71e54e003e4 (patch)
tree72a422fbf223debf94bf3feeb5a0ccaefc5fe1c6 /vtysh
parentad572396fc8306cee92af37d1099e317856a99d0 (diff)
2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* vtysh.c: (vtysh_connect) No reason to call geteuid and getegid, the results were never used.
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/ChangeLog5
-rw-r--r--vtysh/vtysh.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/vtysh/ChangeLog b/vtysh/ChangeLog
index 5e32f015..072172b9 100644
--- a/vtysh/ChangeLog
+++ b/vtysh/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+ * vtysh.c: (vtysh_connect) No reason to call geteuid and getegid,
+ the results were never used.
+
2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* vtysh.c: Make several functions static instead of global.
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 0a043cf9..04d9d7d2 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -1991,15 +1991,11 @@ vtysh_connect (struct vtysh_client *vclient, const char *path)
int sock, len;
struct sockaddr_un addr;
struct stat s_stat;
- uid_t euid;
- gid_t egid;
memset (vclient, 0, sizeof (struct vtysh_client));
vclient->fd = -1;
/* Stat socket to see if we have permission to access it. */
- euid = geteuid();
- egid = getegid();
ret = stat (path, &s_stat);
if (ret < 0 && errno != ENOENT)
{