linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michal Čihař" <michal@cihar.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev problems
Date: Sun, 07 Mar 2004 15:46:17 +0000	[thread overview]
Message-ID: <200403071646.17676.michal@cihar.com> (raw)
In-Reply-To: <200403071315.02925.michal@cihar.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 07 of March 2004 16:28, Michal Èihaø wrote:
> Okay, I found the solution, but not the problem - attached script works. It
> builds name and then echoes complete line, while the previous one echoed it
> by parts.

execute_program in namedev.c doesn't handle correctly situation when it get 
line split into smaller pieces (it should IMHO concatenate it till EOF or 
\n), this leads to setting retval to -1, what is then returned. This doesn't 
happen always, as it depends when pipe buffer is read/written.

Debug log for this case:

match_rule: check PROGRAM
apply_format: format=k, string='/etc/udev/apacer.sh ', tail=' %b %n'
apply_format: substitute kernel name 'sdb'
apply_format: format=b, string='/etc/udev/apacer.sh sdb ', tail=' %n'
apply_format: substitute bus_id '57:0:0:1'
apply_format: format=n, string='/etc/udev/apacer.sh sdb 57:0:0:1 ', tail=''
execute_program: executing '/etc/udev/apacer.sh sdb 57:0:0:1 '
execute_program: execute program '/etc/udev/apacer.sh'
execute_program: result is 'cardreader-'
execute_program: result value already set
execute_program: result value already set
match_rule: PROGRAM returned nozero

- -- 
Regards
	Michal Èihaø
	http://cihar.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAS0PJ3DVS6DbnVgQRAo0nAJ9WjVuX1G0ou3UC3LrkEGX09HNQZQCfVVPf
HrihustikcY3nE+flge8/4w=BtCH
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&opÌk
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2004-03-07 15:46 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-07 12:15 udev problems Michal Čihař
2004-03-07 12:29 ` Kay Sievers
2004-03-07 12:47 ` Michal Čihař
2004-03-07 13:10 ` Michal Čihař
2004-03-07 13:44 ` Kay Sievers
2004-03-07 13:49 ` Michal Čihař
2004-03-07 14:05 ` Kay Sievers
2004-03-07 14:16 ` Kay Sievers
2004-03-07 14:20 ` Michal Čihař
2004-03-07 14:28 ` Kay Sievers
2004-03-07 14:30 ` Michal Čihař
2004-03-07 14:41 ` Kay Sievers
2004-03-07 14:43 ` Michal Čihař
2004-03-07 15:11 ` Michal Čihař
2004-03-07 15:28 ` Michal Čihař
2004-03-07 15:46 ` Michal Čihař [this message]
2005-04-18 18:13 ` clemens
2005-04-18 20:49 ` Greg KH
2005-04-18 21:02 ` David Zeuthen
2005-04-18 21:12 ` Greg KH
2005-04-18 21:27 ` clemens
2005-04-18 21:36 ` Kay Sievers
2005-04-19  7:36 ` clemens

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=200403071646.17676.michal@cihar.com \
    --to=michal@cihar.com \
    --cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).