libselinux/libselinux-rhat.patch

13 lines
567 B
Diff
Raw Normal View History

2005-02-21 14:10:27 +00:00
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
2005-02-21 14:10:27 +00:00
+++ 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;
2005-02-11 01:38:47 +00:00
}