find a usable pty. Patch from Rob Leslie via Debian.
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@22
456724a4-4300-0410-8514-
c89748c515a2
* Rewrite findtty() in bootlogd to recursively search /dev/ for the
correct device, to handle terminal devices for example in /dev/pty/.
Patch from Debian.
+ * Make sure bootlogd findpty() returns an error value when it fails to
+ find a usable pty. Patch from Rob Leslie via Debian.
-- Petter Reinholdtsen <pere@hungry.com> Sun, 12 Jul 2009 19:58:10 +0200
}
if (found) break;
}
- if (found < 0) return -1;
+ if (!found) return -1;
if (name) strcpy(name, tty);