summaryrefslogtreecommitdiff
path: root/vtysh/vtysh.c
diff options
context:
space:
mode:
Diffstat (limited to 'vtysh/vtysh.c')
-rw-r--r--vtysh/vtysh.c4
1 files changed, 0 insertions, 4 deletions
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)
{