chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rules: recognize partitions and disk devices properly
[elogind.git]
/
udevinfo.c
diff --git
a/udevinfo.c
b/udevinfo.c
index f36f240f0a710971723a453b927d4ae9f4ae568d..82057de54c566b9dd8469b7c5bf5583c4e888d95 100644
(file)
--- a/
udevinfo.c
+++ b/
udevinfo.c
@@
-93,7
+93,7
@@
static void print_all_attributes(const char *devpath, const char *key)
continue;
}
continue;
}
- replace_
untrusted_chars(value
);
+ replace_
chars(value, ALLOWED_CHARS_INPUT
);
printf(" %s{%s}==\"%s\"\n", key, dent->d_name, value);
}
}
printf(" %s{%s}==\"%s\"\n", key, dent->d_name, value);
}
}
@@
-413,7
+413,7
@@
int main(int argc, char *argv[], char *envp[])
case ACTION_ATTRIBUTE_WALK:
if (path[0] != '\0') {
if (print_device_chain(path) != 0) {
case ACTION_ATTRIBUTE_WALK:
if (path[0] != '\0') {
if (print_device_chain(path) != 0) {
- fprintf(stderr, "
device not
found\n");
+ fprintf(stderr, "
no valid sysfs device
found\n");
rc = 4;
goto exit;
}
rc = 4;
goto exit;
}
@@
-424,7
+424,7
@@
int main(int argc, char *argv[], char *envp[])
goto exit;
}
if (print_device_chain(udev->dev->devpath) != 0) {
goto exit;
}
if (print_device_chain(udev->dev->devpath) != 0) {
- fprintf(stderr, "
device not
found\n");
+ fprintf(stderr, "
no valid sysfs device
found\n");
rc = 4;
goto exit;
}
rc = 4;
goto exit;
}