From: "J.A. Magallon" <jamagallon@able.es>
To: Lista Linux-Kernel <linux-kernel@vger.kernel.org>
Cc: Greg KH <gregkh@suse.de>
Subject: [PATCH] fixes for cdsymlinks.c
Date: Sat, 12 Feb 2005 01:57:48 +0000 [thread overview]
Message-ID: <1108173468l.5587l.3l@werewolf.able.es> (raw)
[-- Attachment #1: Type: text/plain, Size: 1802 bytes --]
Hi...
I needed this patch to get this working, I think they are obvious
corrections:
--- cdsymlinks.c.orig 2005-02-12 02:51:15.000000000 +0100
+++ cdsymlinks.c 2005-02-12 02:48:35.000000000 +0100
@@ -218,7 +218,7 @@
list_assign_split (struct list_t *list, char *text)
{
char *token = strchr (text, ':');
- token = strtok (token ? token + 1 : text, " \t");
+ token = strtok (token ? token + 1 : text, " \t\n");
while (token)
{
list_prepend (list, token);
@@ -267,8 +267,8 @@
list_delete (&allowed_output);
list_assign_split (&allowed_output, p.we_wordv[0] + 7);
}
- else if (!strncmp (p.we_wordv[0], "NUMBERED_LINKS=", 14))
- numbered_links = atoi (p.we_wordv[0] + 14);
+ else if (!strncmp (p.we_wordv[0], "NUMBERED_LINKS=", 15))
+ numbered_links = atoi (p.we_wordv[0] + 15);
break;
}
/* fall through */
@@ -325,9 +325,9 @@
list_assign_split (&cap_CDRW, text);
else if (!strncasecmp (text, "Can write CD-R", 14))
list_assign_split (&cap_CDR, text);
- else if (!strncasecmp (text, "Can read MRW", 14))
+ else if (!strncasecmp (text, "Can read MRW", 12))
list_assign_split (&cap_CDMRW, text);
- else if (!strncasecmp (text, "Can write MRW", 14))
+ else if (!strncasecmp (text, "Can write MRW", 13))
list_assign_split (&cap_CDWMRW, text);
}
if (!feof (info))
Hope this is correct and will be included in udev-054 ;)
TIA
--
J.A. Magallon <jamagallon()able!es> \ Software is like sex:
werewolf!able!es \ It's better when it's free
Mandrakelinux release 10.2 (Cooker) for i586
Linux 2.6.10-jam9 (gcc 3.4.3 (Mandrakelinux 10.2 3.4.3-3mdk)) #1
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
reply other threads:[~2005-02-12 1:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1108173468l.5587l.3l@werewolf.able.es \
--to=jamagallon@able.es \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®