diff options
| author | Russ White <russ@riw.us> | 2017-01-25 15:04:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-25 15:04:49 -0500 |
| commit | dfa7df29a8a3335d85f8825063d9334652ae7e4b (patch) | |
| tree | 2fbb6588bab2ec9ec3c513236beb409a3174e5e5 /lib/vty.c | |
| parent | 1ef15f4685db67088134abfd5f9c1fc1275e0d7a (diff) | |
| parent | 38657f2ebd65fce3cfcba3ff4d29b29056af2df1 (diff) | |
Merge pull request #120 from opensourcerouting/snapcraft-base-v3
Snapcraft base changes
Diffstat (limited to 'lib/vty.c')
| -rw-r--r-- | lib/vty.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2091,8 +2091,11 @@ vty_serv_un (const char *path) umask (old_mask); zprivs_get_ids(&ids); - - if (ids.gid_vty > 0) + + /* Hack: ids.gid_vty is actually a uint, but we stored -1 in it + earlier for the case when we don't need to chown the file + type casting it here to make a compare */ + if ((int)ids.gid_vty > 0) { /* set group of socket */ if ( chown (path, -1, ids.gid_vty) ) |
