projects
/
framework
/
security
/
smack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f320b95
)
libsmack: Ignore blank lines in the rules files
author
Brian McGillion
<brian.mcgillion@intel.com>
Wed, 2 May 2012 06:39:19 +0000
(09:39 +0300)
committer
Brian McGillion
<brian.mcgillion@intel.com>
Wed, 2 May 2012 06:39:19 +0000
(09:39 +0300)
libsmack/libsmack.c
patch
|
blob
|
history
diff --git
a/libsmack/libsmack.c
b/libsmack/libsmack.c
index
1b96524
..
f16ab67
100644
(file)
--- a/
libsmack/libsmack.c
+++ b/
libsmack/libsmack.c
@@
-182,6
+182,8
@@
int smack_accesses_add_from_file(struct smack_accesses *accesses, int fd)
}
while (fgets(buf, READ_BUF_SIZE, file) != NULL) {
+ if (strcmp(buf, "\n") == 0)
+ continue;
subject = strtok_r(buf, " \t\n", &ptr);
object = strtok_r(NULL, " \t\n", &ptr);
access = strtok_r(NULL, " \t\n", &ptr);