Re: Simple devpts fix against 2.1.116

Chris Atenasio (root@lilo.dyn.ml.org)
Thu, 20 Aug 1998 22:02:51 -0400 (EDT)


maybe this would be a better solution:

--- linux-2.1.116/fs/devpts/inode.c Wed Aug 19 19:14:55 1998
+++ linux/fs/devpts/inode.c Thu Aug 20 21:55:14 1998
@@ -82,8 +82,7 @@
umode_t mode = 0600;
char *this_char, *value;

- if ( !options ) return 1;
- for (this_char = strtok(options,","); this_char; this_char = strtok(NULL,",")) {
+ for (this_char = options ? strtok(options,",") : NULL; this_char; this_char = strtok(NULL,",")) {
if ((value = strchr(this_char,'=')) != NULL)
*value++ = 0;
if (!strcmp(this_char,"uid")) {

- Chris
--------------------------------------------------------------------------------
Chris Atenasio (chrisa@ultranet.com) -- Friends dont let friends use Windows.
Send me mail with subject "send pgp key" or "word of the day" for autoresponse.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html