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:
736ac92
)
Fix: update mtime for global_rules.
author
Jarkko Sakkinen
<ext-jarkko.2.sakkinen@nokia.com>
Thu, 10 Mar 2011 10:57:07 +0000
(
02:57
-0800)
committer
Jarkko Sakkinen
<ext-jarkko.2.sakkinen@nokia.com>
Thu, 10 Mar 2011 10:57:07 +0000
(
02:57
-0800)
src/smack.c
patch
|
blob
|
history
diff --git
a/src/smack.c
b/src/smack.c
index
cb0811d
..
fbbfd71
100644
(file)
--- a/
src/smack.c
+++ b/
src/smack.c
@@
-91,13
+91,13
@@
static int refresh_global_rules(const char *path)
goto out;
}
- if (global_rules != NULL) {
- ret = stat(path, &sb);
- if (ret) {
- result = -1;
- goto out;
- }
+ ret = stat(path, &sb);
+ if (ret) {
+ result = -1;
+ goto out;
+ }
+ if (global_rules != NULL) {
if (global_rules_path == NULL ||
strcmp(path, global_rules_path) != 0 ||
sb.st_mtime != global_rules_mtime)
@@
-105,6
+105,8
@@
static int refresh_global_rules(const char *path)
}
if (global_rules == NULL) {
+ global_rules_mtime = sb.st_mtime;
+
global_rules_path = strdup(path);
if (global_rules_path == NULL) {
result = -1;