From 935195cfaee504a0b61afaf53b78a92d9bf0f026 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 9 Jan 2008 21:08:47 +0000 Subject: add patch from rhel5 (#351291) --- src/rename_device.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/rename_device.c') diff --git a/src/rename_device.c b/src/rename_device.c index 7b3b3699..f7fc1d36 100644 --- a/src/rename_device.c +++ b/src/rename_device.c @@ -170,6 +170,19 @@ int isCfg(const struct dirent *dent) { return 1; } +static inline char *dequote(char *start, char *end) { + if (end==NULL) { + end=start; + while(*end) end++; + } + if (end > start) end--; + if ((*start == '\'' || *start == '\"') && ( *start == *end ) ) { + *end='\0'; + if (start