1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-14 15:21:37 +03:00
Commit Graph

20637 Commits

Author SHA1 Message Date
kay.sievers@vrfy.org
ef672b3dc4 [PATCH] better fix for NAME="foo-%c{N}" gets a truncated name
On Wed, Mar 03, 2004 at 04:56:34PM -0800, Greg KH wrote:
> On Wed, Mar 03, 2004 at 03:57:04PM -0800, Patrick Mansfield wrote:
> >
> > Here is a patch for some new tests.
>
> Applied, thanks.

Here is a small improvement, which looks much better.

Hey Pat, thanks a lot for finding the recent bug, hope this one will
not break it again :)
2005-04-26 21:35:08 -07:00
hannal@us.ibm.com
a3fa7908e2 [PATCH] Small fix to remove extra "will" in man page
remove extraneous word.
2005-04-26 21:35:08 -07:00
kay.sievers@vrfy.org
d00bd1724b [PATCH] overall trivial trivial cleanup
Here I try to make the style a bit more consistant in the different
files, so that new patches just copy the 'right' one :)

Some "magic" numbers are replaced and udevtest.c is catched up with udev.
2005-04-26 21:35:08 -07:00
patmans@us.ibm.com
56c963dc4d [PATCH] add tests for NAME="foo-%c{N}"
Here is a patch for some new tests.
2005-04-26 21:35:08 -07:00
kay.sievers@vrfy.org
27c3403dd8 [PATCH] fix NAME="foo-%c{N}" gets a truncated name
On Wed, Mar 03, 2004 at 02:43:34PM -0800, Patrick Mansfield wrote:
> Here is a fix and a new test for the problem Atul hit, where if we have a
> NAME based on a result of the form:
>
> 	NAME="foo-%c{7}"
>
> udev truncates the name. Without any prefix (the foo- in this example),
> the rule was working OK.

Here is a fix for the fix :)

Sorry, I broke it yesterday.
2005-04-26 21:35:08 -07:00
greg@kroah.com
e4f9c4a46d [PATCH] 021_bk mark 2005-04-26 21:35:08 -07:00
greg@kroah.com
5895eb31fe [PATCH] fix the build for older versions of gcc 2005-04-26 21:35:08 -07:00
kay.sievers@vrfy.org
9fe3f9a938 [PATCH] cleanup mult field string handling
Here I try to cleanup our various multifield iteration over the strings.
Inspired by our nice list.h we now have a macro to iterate over the string
and process the parts of it:
It makes the code more readable and we don't change the string while we
process it like the former strsep() does.

Example:

  foreach_strpart(dev->symlink, " ", pos, len) {
  	if (strncmp(&dev->symlink[pos], find_name, len) != 0)
  		continue;

  	...
  }

For the callout part selector %c{2} we separate now not only by space but
also newline and return characters, cause some programs may give multiline
values back. A possible RESULT match must contain wildcards for these
characters.

Also a bug in the recent udevinfo symlink query feature is fixed.
2005-04-26 21:35:08 -07:00
greg@kroah.com
88ed4bbe56 [PATCH] 021 release 2005-04-26 21:35:08 -07:00
greg@kroah.com
0d1956de0e [PATCH] fix udev.spec to find udevinfo now that it has moved to /usr/bin 2005-04-26 21:35:08 -07:00
kay.sievers@vrfy.org
e56f005817 [PATCH] install udevinfo in /usr/bin
Here we rename the former tiny $(HELPER) to $(INFO)
cause it's no longer only a helper :)
And install it in /usr/bin instead of /sbin cause any user
may want to call it and we don't need it on startup.
2005-04-26 21:35:07 -07:00
kay.sievers@vrfy.org
e9f504e8d8 [PATCH] blacklist pcmcia_socket
Is this something for the blacklist?

/sys/class/pcmcia_socket/
|-- pcmcia_socket0
|   |-- device -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:00.0
|   `-- driver -> ../../../bus/pci/drivers/yenta_cardbus
`-- pcmcia_socket1
    |-- device -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:00.1
        `-- driver -> ../../../bus/pci/drivers/yenta_cardbus
2005-04-26 21:35:07 -07:00
greg@kroah.com
dfe421a965 [PATCH] Fix another problem with Makefile installing initscript 2005-04-26 21:35:07 -07:00
greg@kroah.com
789adb79f5 [PATCH] fix the Makefile to install the init script into the proper directory
grrr...robert...
2005-04-26 21:35:07 -07:00
greg@kroah.com
e729cb0b73 [PATCH] make spec file turn off selinux support by default. 2005-04-26 21:35:07 -07:00
greg@kroah.com
a8b41e072c [PATCH] 020 release 2005-04-26 21:35:07 -07:00
greg@kroah.com
43f46b5605 [PATCH] update the TODO list as we already have a devfs config file. 2005-04-26 21:35:07 -07:00
greg@kroah.com
27abdb46ff [PATCH] make start_udev use udevstart binary 2005-04-26 21:35:07 -07:00
kay.sievers@vrfy.org
b5e0fc3208 [PATCH] man page udevstart 2005-04-26 21:35:07 -07:00
greg@kroah.com
1f63fbdd30 [PATCH] install udevstart 2005-04-26 21:35:07 -07:00
kay.sievers@vrfy.org
e4dc0e11c1 [PATCH] cleanup udevstart
I just wanted to terminate the snprintf() strings, cause I can see a
overflow with closed eyes after all the audit :)

But then I changed a bit more to bring it in line with the style of the
other files. I replaced the exec_udev() function with the one from
udevd, cause we don't need to read the stdout from udev.

Please have a look if it still works for you too and not
only for usernames with 3 characters :)
2005-04-26 21:35:07 -07:00
rml@ximian.com
c58f8c3000 [PATCH] automatically install correct initscript
On Mon, 2004-03-01 at 20:08, Robert Love wrote:

> Ack, I did not even see that!  Thanks.
>
> Let's rip that out, and always use the new built-in logic to determine
> what initscript to install.

Hm, looks like we do not need the %{lsb} and USE_LSB logic at all,
anymore.

Here is the patch, updated, removing both completely.
2005-04-26 21:35:07 -07:00
kay.sievers@vrfy.org
5ec4899acf [PATCH] bugfix for local user
While moving the local user logic in it's own function I missed to
change the "secure" string macro. We copy only the first 3 bytes
of the username. Guess why I didn't notice it :)
2005-04-26 21:35:07 -07:00
greg@kroah.com
2ef3bc2b70 [PATCH] Remove Debian permission files as the Debian maintainer doesn't seem to want to share :( 2005-04-26 21:35:07 -07:00
greg@kroah.com
5ba7d3d603 [PATCH] update the Gentoo rules files. 2005-04-26 21:35:07 -07:00
greg@kroah.com
c9043d4597 [PATCH] Add Red Hat rules and permissions files
Taken from udev-018-2.src.rpm from Fedora Devel.
2005-04-26 21:35:07 -07:00
greg@kroah.com
82b9a63782 [PATCH] add udevstart program based on a old patch from Harald Hoyer <harald@redhat.com>
This can be used instead of the start_udev script for systems
that do not have a shell, or some other problem...
2005-04-26 21:35:07 -07:00
kay.sievers@vrfy.org
dc820c1bc1 [PATCH] - unlink bugfix
Fix for recent unlink patch.
2005-04-26 21:35:07 -07:00
kay.sievers@vrfy.org
5202dc9991 [PATCH] TODO update
I promise, that I will not take every item you put in the TODO list :)
2005-04-26 21:35:07 -07:00
kay.sievers@vrfy.org
dba8c18b8b [PATCH] clarify udevinfo device walk
It seems that the long attribute list can confuse the user.
Se here we print a few words on top the attributes.
2005-04-26 21:35:06 -07:00
kay.sievers@vrfy.org
8ea84a8a78 [PATCH] udevinfo symlink reverse query
Thanks to Olaf Hering <olh@suse.de> for this patch. It's possible now to
feed the -n option of udevinfo with a symlink.

I've also added a 'all' attribute, but no more text, it's all in the
included man page :)
2005-04-26 21:35:06 -07:00
greg@kroah.com
97853b4f40 [PATCH] unlink the file before we try to create it.
Based on the patch in the Gentoo repo.
2005-04-26 21:35:06 -07:00
kay.sievers@vrfy.org
aebef544cb [PATCH] fix stroul endptr use
The endptr is never NULL, so here we hopefully do the right thing.
2005-04-26 21:35:06 -07:00
rml@ximian.com
a6f01502bd [PATCH] update documetation for $local
On Mon, 2004-03-01 at 17:44, Greg KH wrote:
> Hm, that should be Robert's job actually, he should do something for
> real...  :)

Hey, I wrote the nifty local user detection snippet - but, I owe Kay, so
here is an updated man page.
2005-04-26 21:35:06 -07:00
christophe.varoqui@free.fr
cbd2ea21e4 [PATCH] multipath update 2005-04-26 21:35:06 -07:00
kay.sievers@vrfy.org
534c853df5 [PATCH] add $local user spport for permissions 2005-04-26 21:35:06 -07:00
kay.sievers@vrfy.org
311e9ae681 [PATCH] udev - man page update
Here is a small change to the udev man page:

  - clarify the use of the NAME{all_partitions} syntax
    and add a example to udev.rules.example
  - mention the empty NAME field to ignore the device
  - prepare a SYMLINK field for the addition of Andrey's
    "multiple symlinks" documentation :)
2005-04-26 21:35:06 -07:00
md@Linux.IT
92c5ddee38 [PATCH] no error on enoent
no_error_on_enoent: do not exit with an error and delete all files
when a device or directory does not exist.
2005-04-26 21:35:06 -07:00
md@Linux.IT
758f236fd1 [PATCH] escape dashes in man pages
man-dashes.diff: escape dashes in man pages, helps with UTF-8 locales
(by Philipp Matthias Hahn).
2005-04-26 21:35:06 -07:00
md@Linux.IT
b7b6562729 [PATCH] remove usage of expr in ide-devfs.sh
fix_expr: remove usage of expr in ide-devfs.sh, because it may be in
/usr/bin and not available at early boot time.
2005-04-26 21:35:06 -07:00
kay.sievers@vrfy.org
bd5f8e7cd1 [PATCH] udev - fix debug info for multiple rule file config
On Sat, Feb 28, 2004 at 09:56:32PM +0100, Kay Sievers wrote:
> Andrey pointed out that we don't print the right filename in the debug
> output. Here is a fix for that. It applies on top of Andrey's symlink
> patch, cause we are touching the same part of the code.

The copy/paste devil catched me :)
Here is a fixed one.
2005-04-26 21:34:29 -07:00
kay.sievers@vrfy.org
63ead27c22 [PATCH] udev - activate formt length attribute
We carried the the old callout part selector syntax for two releases
now after it was replaced by the new %c{1} syntax. So here we remove
the old syntax and use the code to possibly specify the maximum count
of chars to insert into the string. It will work with all of our format
chars.
I don't know if somebody will use it, but the code is already there :)

's%3s{vendor}' returns "IBM" now, instead of "IBM-ESXS".

Also added is a test for it and a few words in the man page.
2005-04-26 21:34:29 -07:00
greg@kroah.com
e408796e91 [PATCH] 019_bk mark 2005-04-26 21:34:28 -07:00
arvidjaar@mail.ru
97ed02eebe [PATCH] Add symlink only rules support 2005-04-26 21:34:28 -07:00
kay.sievers@vrfy.org
f070df164c [PATCH] udev - kill udevd on install
We want to kill udevd after installing a new version, cause the event
contains a magic with the version number of udev.
2005-04-26 21:34:28 -07:00
kay.sievers@vrfy.org
c58e36c092 [PATCH] udev - safer sprintf() use
Here is for now my last patch to the string handling for a rather
theorethical case, where the node is very very very long. :)

We have accordant to strfieldcat(to, from) now a strintcat(to, i) macro,
which appends the ascii representation of a integer to a string in a
safe way.
2005-04-26 21:34:28 -07:00
greg@kroah.com
7eb136adb8 [PATCH] 018 release 2005-04-26 21:34:28 -07:00
patmans@us.ibm.com
b484e43622 [PATCH] update udev scsi_id to scsi_id 0.4
This patch syncs the scsi_id in the udev tree to version 0.4.
2005-04-26 21:34:28 -07:00
greg@kroah.com
1373b381d0 [PATCH] add new TODO item about local user permissions. 2005-04-26 21:34:28 -07:00
kay.sievers@vrfy.org
84d282a9d2 [PATCH] TODO update
On Thu, Feb 12, 2004 at 05:26:37PM -0800, Greg KH wrote:
> On Fri, Feb 13, 2004 at 12:45:38AM +0100, Kay Sievers wrote:
> >
> > Here a few questions about my favorite file in the tree :)
> > - better permission handling
> >
> > What is missing here?
>
> I don't know for sure.  Just a vague feeling that the way we currently
> handle permissions is pretty lousy.  Anyone else feel this way too?

Seems that nobody cares and perhaps the recent klibc permission changes
and the multiple file config directory are enough to kill these lines? :)
2005-04-26 21:34:28 -07:00