[lockdev-devel] [PATCH 2/4] files not in /dev ar not supported
Ludwig Nussel
ludwig.nussel at suse.de
Tue Mar 2 09:22:23 UTC 2010
---
src/lockdev.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/src/lockdev.c b/src/lockdev.c
index 67f429d..3231ab0 100644
--- a/src/lockdev.c
+++ b/src/lockdev.c
@@ -490,13 +490,6 @@ _dl_check_devname (const char *devname)
if (strncmp(DEV_PATH, p, strlen(DEV_PATH)) == 0) {
p += 5;
_debug( 3, "_dl_check_devname(%s) stripped name = %s\n", devname, p);
- } else {
- /* Otherwise, strip off everything but the device name. */
- p += strspn(p, " \t\r\n\v\f\a"); /* skip leading whitespace */
- if (strncmp(p, DEV_PATH, strlen(DEV_PATH)) == 0) {
- p += strlen(DEV_PATH); /* 1st char after slash */
- _debug( 3, "_dl_check_devname(%s) name = %s\n", devname, p);
- }
}
if ( strcmp( p, "tty") == 0 )
p = ttyname( 0); /* this terminal, if it exists */
--
1.6.4.2
More information about the lockdev-devel
mailing list