13 lines
567 B
Diff
13 lines
567 B
Diff
diff --exclude-from=exclude -N -u -r nsalibselinux/src/matchpathcon.c libselinux-1.21.10/src/matchpathcon.c
|
|
--- nsalibselinux/src/matchpathcon.c 2005-02-17 14:22:28.000000000 -0500
|
|
+++ libselinux-1.21.10/src/matchpathcon.c 2005-02-21 09:04:33.000000000 -0500
|
|
@@ -401,7 +401,7 @@
|
|
char *regex, *type, *context;
|
|
char *anchored_regex;
|
|
len = strlen(line_buf);
|
|
- if (line_buf[len - 1] != '\n') {
|
|
+ if ((line_buf[len - 1] != '\n') && (line_buf[len - 1 ] != 0)) {
|
|
myprintf("%s: line %d is too long, would be truncated, skipping\n", path, lineno);
|
|
return 0;
|
|
}
|