Commit Graph

10522 Commits

Author SHA1 Message Date
Peter Hutterer
7cbac7b22b hwdb: add missing line between the G400 entries
Error, DATA expected but got 'mouse:usb:v046dpc24c:name:Logitech G400s Optical
Gaming Mouse:' in '/etc/udev/hwdb.d/70-mouse.hwdb':
Error, MATCH expected but got ' MOUSE_DPI=400@1000 *800@1000 2000@1000
4000@1000' in '/etc/udev/hwdb.d/70-mouse.hwdb':

Introduced in 6366e349

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-17 08:41:21 -05:00
Peter Hutterer
fe1d7746fe hwdb: note that we care about the maximum frequency in MOUSE_DPI
Devices with dynamic frequency scaling adjust the frequency as needed. For
those we only care about the maximum frequency, not the various in betweens.

https://bugs.freedesktop.org/show_bug.cgi?id=87435#c8

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-17 08:40:41 -05:00
Zbigniew Jędrzejewski-Szmek
971c473db7 hwdb: adjust max frequency of Logitech RX 250
https://bugs.freedesktop.org/show_bug.cgi?id=87435

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-17 08:39:00 -05:00
Jonas Ådahl
8736c07c8b hwdb: mouse DPI data, Logitech Gaming Mouse G400
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-17 08:38:18 -05:00
Anthony G. Basile
8581fe66c1 src/v4l_id: fix compile error 2015-01-10 07:49:38 -05:00
Lennart Poettering
81ce2af261 udevadm,..: make --help output of udev tools more like the output of the various other tools
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-07 16:53:15 -05:00
Robert Milasan
2ce4bb9f12 udev: improve help/usage for some more programs
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-07 16:42:09 -05:00
Robert Milasan
251b8f66aa accelerometer: display short options too
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-07 16:40:19 -05:00
Robert Milasan
ec0310d5e4 accelerometer: drop unused -x option
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-07 16:39:14 -05:00
Anthony G. Basile
2e73ff7999 hwdb: bring bluetooth and mouse hwdb's up to date 2015-01-07 16:11:40 -05:00
Peter Hutterer
34d0036db7 hwdb: revert Logitech Optical USB Mouse
Reporter says he incorrectly measured the data but the device is not available
anymore to correct it. We'll have to wait for someone else to submit the data.

https://bugs.freedesktop.org/show_bug.cgi?id=87343

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-07 16:08:32 -05:00
Anthony G. Basile
5ab5841a3e src/shared/missing.h: add __NR_getrandom for other arches
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 12:32:50 -05:00
Tom Gundersen
54c92293a6 shared: utf8 - support decoding the full utf16
We originally only supported the BMP (i.e., we treated UTF-16 as UCS-2).

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 12:22:28 -05:00
Tom Gundersen
7695053973 shared: utf8 - support ucs4 -> utf8
Originally we only supported ucs2, so move the ucs4 version from libsystemd-terminal to shared
and use that everywhere.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 12:02:20 -05:00
Anthony G. Basile
f39a29beda NOTES: Keep notes on significant deviations from upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:57:03 -05:00
Shawn Paul Landden
8f937bf4f6 libudev: fix strict aliasing violation
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:49:49 -05:00
Tom Gundersen
ae0ea6cd59 hwdb: mouse - add Razer Abyssus
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:43:30 -05:00
Peter Hutterer
fd378a7680 hwdb: add rule and first entry for PS/2 mice
https://bugs.freedesktop.org/show_bug.cgi?id=87037

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:42:46 -05:00
Frank Theile
8c72ad4772 hwdb: Microsoft Wireless Laser Mouse 8000 DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87587

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:41:42 -05:00
Frank Theile
095677014d hwdb: Lenovo USB mouse MO28UOL DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87504

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:41:04 -05:00
Zbigniew Jędrzejewski-Szmek
487a8b2adc ata_id: remove temp variable to kill warning
src/ata_id/ata_id.c:503:24: warning: assignment from incompatible pointer type
         identify_words = &identify.wyde;
                        ^

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:31:39 -05:00
Zbigniew Jędrzejewski-Szmek
379131ea37 ata_id: modernize
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:30:21 -05:00
Shawn Paul Landden
3b2aa6c673 udev: fix another strict aliasing issue
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:06:48 -05:00
Shawn Paul Landden
96ce74918f util: fix strict aliasing violations in use of struct inotify_event v5
There is alot of cleanup that will have to happen to turn on
-fstrict-aliasing, but I think our code should be "correct" to the rule.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:05:19 -05:00
Anthony G. Basile
9d06e65608 man/udev.xml: restore hwdb documentation 2014-12-20 11:45:25 -05:00
Anthony G. Basile
1e1eddac8d hwdb/60-keyboard.hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 11:16:24 -05:00
Zbigniew Jędrzejewski-Szmek
288e4abc01 hwdb: move Logitech mouse to the right spot
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 11:13:02 -05:00
Erik Auerswald
9d31c53dbf hwdb: Logitech, Inc. RX 250 Optical Mouse DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87435

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 11:12:28 -05:00
Tim JP
526ff8804d hwdb: Logitech, Inc. RX 300 Optical Mouse DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87456

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 11:11:28 -05:00
Lennart Poettering
5c069ee466 util: rename ignore_file() to hidden_file()
hidden_file() is a bit more precise, since dot files usually shouldn't
be ignored, but certainly be considered hidden.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 11:07:06 -05:00
Lennart Poettering
1ebbd90911 util: when creating temporary filename for atomic creation of files, add an extra "#" to the name
That way, we have a simple, somewhat reliable way to detect such
temporary files, by simply checking if they start with ".#".

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 10:58:19 -05:00
Zbigniew Jędrzejewski-Szmek
fcaebcecdb Treat a trailing backslash as an error
Commit a2a5291b3f5 changed the parser to reject unfinished quoted
strings. Unfortunately it introduced an error where a trailing
backslash would case an infinite loop. Of course this must fixed, but
the question is what to to instead. Allowing trailing backslashes and
treating them as normal characters would be one option, but this seems
suboptimal. First, there would be inconsistency between handling of
quoting and of backslashes. Second, a trailing backslash is most
likely an error, at it seems better to point it out to the user than
to try to continue.

Updated rules:
ExecStart=/bin/echo \\ → OK, prints a backslash
ExecStart=/bin/echo \ → error
ExecStart=/bin/echo "x → error
ExecStart=/bin/echo "x"y → error

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 10:32:25 -05:00
Dave Reisner
39e51a3488 path-util: fix breakage in path_is_mount_point
This fixes 2 problems introduced by 6feeeab0bc:

1) If name_to_handle_at returns ENOSYS for the child, we'll wrongly
return -ENOSYS when it returns the same for the parent. Immediately
jump to the fallback logic when we get ENOSYS.

2) If name_to_handle_at returns EOPNOTSUPP for the child but suceeds
for the parent, we'll be comparing an uninitialized value (mount_id) to
an initialized value (mount_id_parent). Initialize the mount_id
variables to invalid mount_ids to avoid this.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 10:28:13 -05:00
Zbigniew Jędrzejewski-Szmek
b5a7205f6e path: make the check for unsupported name_to_handle_at symmetric
If child supports, but the parent does not, or when the child does
not support, but the parent does, assume the child is a mount point.

Only if neither supports use the fallback.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 10:26:02 -05:00
Umut Tezduyar Lindskog
a2092eadcc path: follow symbolic link for parent path (2)
c0e57ba9e22ee937722958d8b912ade2a37f206d fixed the fallback path.
We should do the same for name_to_handle_at().

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 10:21:48 -05:00
Umut Tezduyar Lindskog
691bd2810b path: follow symbolic link for parent path
[zj: When we lstat the target path, symlinks above the last component
     will be followed by both stat and lstat. So when we look at the
     parent, we should follow symlinks.]

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 10:11:13 -05:00
Tom Gundersen
0ec88a3573 shared: strv - add strv_clear()
This frees the elements of the strv without freeing the strv itself.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 10:08:23 -05:00
Tom Gundersen
8170dcd369 shared: path-util - memory leak
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 10:05:27 -05:00
Susant Sahani
853a86e6a9 fix compiler warning
src/shared/utf8.c:268:13: warning: unused variable 'd'
[-Wunused-variable]
         int d;
2014-12-20 10:04:48 -05:00
Anthony G. Basile
c74cee5a9b src/shared/util.c: fix tempfn_xxxxxx()
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 10:00:36 -05:00
Michal Schmidt
4ccd9baa59 configure.ac: add a generic --enable-debug, replace --enable-hashmap-debug
There will be more debugging options later.
 --enable-debug will enable them all.
 --enable-debug=hashmap will enable only hashmap debugging.

Also rename the C #define to ENABLE_DEBUG_* pattern.

NOTE: We add the debugging code to hashmap.{c,h} but do not
add the option in configure.ac.  We may do so at a later time.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 09:25:37 -05:00
Lennart Poettering
3f006fb44d src/shared/utf8.c: follow upstream adding utf8_encode_unichar()
This is part of upstream's e7eebcfc42f00aa481ef31abc8e7e243c16f5b2c
in which they add a minimal JSON tokenizer.  We don't add that but
update utf8 stuff from that commit to follow upstream more closely.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 09:19:11 -05:00
Michal Schmidt
87c9d285d2 shared/hashmap.h: fix comment
An early version used underscore prefixes for internal functions, but
the current version uses the prefix "internal_".

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 09:12:48 -05:00
Lennart Poettering
b0c70c543d src/shared/util.c: follow upstream on tempfn_xxxxxx()
Upstream change the behaviour of tempfn_xxxxxx() to make
the following work:

    # systemd-nspawn -xb -D / -M foobar

in commit c4e34a612c81266773cf8358cb38a43d2e43474e.  We
have no reason not to follow that change even though
eudev has nothing to do with nspawn.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 09:09:07 -05:00
Lennart Poettering
12586b6a8a util: minor simplification for loop_write() and loop_read()
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 08:58:04 -05:00
Lennart Poettering
c26b217d91 util: when using basename() for creating temporary files, verify the resulting name is actually valid
Also, rename filename_is_safe() to filename_is_valid(), since it
actually does a full validation for what the kernel will accept as file
name, it's not just a heuristic.

NOTE: eudev doesn't have filename_is_safe() -- AGB

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 08:50:52 -05:00
Lennart Poettering
6b16cd5fed path-util: no need to check whether p is absolute twice
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:47:29 -05:00
Gabriel de Perthuis
c93ec252df blkid: Warn when rejecting a superblock with a bad csum
Bump libblkid requirement from 2.20 to 2.24.
util-linux 2.25 is actually required since fdbbad981cc5da8bb4ed7e9b6646e7a114745ec5

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:37:25 -05:00
Lennart Poettering
411ec4713b udev-builtin-btrfs: properly initialize ioctl struct to zeroes
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:32:39 -05:00
Thomas Hindoe Paaboel Andersen
fdb139feed use correct format types
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:28:47 -05:00