fdecb48665
Ok: Manuel Bouyer <bouyer@netbsd.org>
31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
$NetBSD: patch-dc,v 1.1 2008/03/03 16:45:27 hannken Exp $
|
|
|
|
--- libfsimage/ext2fs/fsys_ext2fs.c.orig 2008-01-31 10:06:54.000000000 +0000
|
|
+++ libfsimage/ext2fs/fsys_ext2fs.c 2008-03-01 11:52:28.000000000 +0000
|
|
@@ -594,7 +594,7 @@ ext2fs_dir (fsi_file_t *ffi, char *dirna
|
|
|
|
/* Find out how long our remaining name is. */
|
|
len = 0;
|
|
- while (dirname[len] && !isspace (dirname[len]))
|
|
+ while (dirname[len] && !isspace ((uint8_t)dirname[len]))
|
|
len++;
|
|
|
|
/* Get the symlink size. */
|
|
@@ -651,7 +651,7 @@ ext2fs_dir (fsi_file_t *ffi, char *dirna
|
|
}
|
|
|
|
/* if end of filename, INODE points to the file's inode */
|
|
- if (!*dirname || isspace (*dirname))
|
|
+ if (!*dirname || isspace ((uint8_t)*dirname))
|
|
{
|
|
if (!S_ISREG (INODE->i_mode))
|
|
{
|
|
@@ -678,7 +678,7 @@ ext2fs_dir (fsi_file_t *ffi, char *dirna
|
|
}
|
|
|
|
/* skip to next slash or end of filename (space) */
|
|
- for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/';
|
|
+ for (rest = dirname; (ch = *rest) && !isspace ((uint8_t)ch) && ch != '/';
|
|
rest++);
|
|
|
|
/* look through this directory and find the next filename component */
|