]> err.no Git - systemd/commitdiff
replace_chars: replace % character
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 21 May 2007 05:59:40 +0000 (07:59 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 21 May 2007 05:59:40 +0000 (07:59 +0200)
test/udev-test.pl
udev.h

index 36cbe8ac75ff76d5d920a22ed93bba9315079ae0..10d87ed54af887920eab7e65ee066b58e2445224 100755 (executable)
@@ -302,7 +302,7 @@ EOF
                devpath         => "/block/sda",
                exp_name        => "node12345678",
                rules           => <<EOF
-SUBSYSTEMS=="scsi", IMPORT="/bin/echo -e \' TEST_KEY=12345678  \\n  TEST_key2=98765 \'", NAME="node\$env{TEST_KEY}"
+SUBSYSTEMS=="scsi", IMPORT="/bin/echo -e \' TEST_KEY=12345678\\n  TEST_key2=98765\'", NAME="node\$env{TEST_KEY}"
 KERNEL=="ttyUSB0", NAME="visor"
 EOF
        },
@@ -1015,26 +1015,6 @@ EOF
                exp_target      => "ttyUSB0",
                rules           => <<EOF
 KERNEL=="ttyUSB[0-9]*", NAME="ttyUSB%n", SYMLINK+="%3s{dev}"
-EOF
-       },
-       {
-               desc            => "symlink with '%' in name",
-               subsys          => "tty",
-               devpath         => "/class/tty/ttyUSB0",
-               exp_name        => "percent%sign",
-               exp_target      => "ttyUSB0",
-               rules           => <<EOF
-KERNEL=="ttyUSB[0-9]*", NAME="ttyUSB%n", SYMLINK+="percent%%sign"
-EOF
-       },
-       {
-               desc            => "symlink with '%' in name",
-               subsys          => "tty",
-               devpath         => "/class/tty/ttyUSB0",
-               exp_name        => "%ttyUSB0_name",
-               exp_target      => "ttyUSB0",
-               rules           => <<EOF
-KERNEL=="ttyUSB[0-9]*", NAME="ttyUSB%n", SYMLINK+="%%%k_name"
 EOF
        },
        {
diff --git a/udev.h b/udev.h
index 454ea4280b53992fc76a97bea0334f5c7c385d78..94d054f76069940ac35b6d5de6ca219e9e3d8531 100644 (file)
--- a/udev.h
+++ b/udev.h
@@ -34,9 +34,9 @@
 #define NAME_SIZE                              256
 #define VALUE_SIZE                             128
 
-#define ALLOWED_CHARS                          "#+-.:=@_%"
+#define ALLOWED_CHARS                          "#+-.:=@_"
 #define ALLOWED_CHARS_FILE                     ALLOWED_CHARS "/"
-#define ALLOWED_CHARS_INPUT                    ALLOWED_CHARS " $/?,"
+#define ALLOWED_CHARS_INPUT                    ALLOWED_CHARS_FILE " $%?,"
 
 #define DEFAULT_PARTITIONS_COUNT               15
 #define UDEV_ALARM_TIMEOUT                     180