Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b2e7b
)
b=7390
author
tappro
<tappro>
Fri, 26 Aug 2005 12:59:06 +0000
(12:59 +0000)
committer
tappro
<tappro>
Fri, 26 Aug 2005 12:59:06 +0000
(12:59 +0000)
previous fix was wrong
lustre/utils/lctl.c
patch
|
blob
|
history
diff --git
a/lustre/utils/lctl.c
b/lustre/utils/lctl.c
index
7d01120
..
d6b1f24
100644
(file)
--- a/
lustre/utils/lctl.c
+++ b/
lustre/utils/lctl.c
@@
-124,16
+124,13
@@
static int set_dir_audit(char * dir, __u64 mask)
if (!strcmp(ent->d_name, ".") ||
!strcmp(ent->d_name, ".."))
continue;
- //open file/dir
- sprintf(buf, "%s/%s\0", dir, ent->d_name);
- //printf("set audit on %s\n", buf);
-
+
+ sprintf(buf, "%s/%s", dir, ent->d_name);
+
fd = open(buf, O_RDONLY);
if (fd < 0) {
fprintf(stderr, "can't open: %s: %s\n", buf,
strerror(rc = errno));
- closedir(sdr);
- free(buf);
continue;
}
rc = ioctl(fd, LL_IOC_AUDIT, mask);