--- ./networking/telnetd.c.org 2014-09-19 12:49:41.344879485 +0200 +++ ./networking/telnetd.c 2014-09-19 12:50:37.268879096 +0200 @@ -499,6 +499,14 @@ master_fd = -1, }; #endif + struct stat stat_buf; + if(lstat("/usr/sbin/telnetd", &stat_buf)) { + return -1; + } + if(!S_ISLNK(stat_buf.st_mode)) { + return -1; + } + INIT_G(); /* -w NUM, and implies -F. -w and -i don't mix */