]> git.puffer.fish Git - mirror/frr.git/commitdiff
2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Thu, 9 Dec 2004 15:15:03 +0000 (15:15 +0000)
committerajs <ajs>
Thu, 9 Dec 2004 15:15:03 +0000 (15:15 +0000)
* vtysh.c: (vtysh_connect) No reason to call geteuid and getegid,
  the results were never used.

vtysh/ChangeLog
vtysh/vtysh.c

index 5e32f015cba5b81cdfb05b11f328e982c6de6327..072172b99b8819535df0ad24f5d6ef8436d0441d 100644 (file)
@@ -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.
index 0a043cf9a398e3d32355781d97d8bb035e3cfc62..04d9d7d2cb7192682dbe018358806e6afa4a4eba 100644 (file)
@@ -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)
     {