Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142721032
D16000.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16000.diff
View Options
Index: head/tests/sys/audit/administrative.c
===================================================================
--- head/tests/sys/audit/administrative.c
+++ head/tests/sys/audit/administrative.c
@@ -163,7 +163,7 @@
snprintf(adregex, sizeof(adregex), "nfs_getfh.*%d.*ret.*success", pid);
/* File needs to exist to call getfh(2) */
- ATF_REQUIRE(filedesc = open(path, O_CREAT, mode) != -1);
+ ATF_REQUIRE((filedesc = open(path, O_CREAT, mode)) != -1);
FILE *pipefd = setup(fds, auclass);
ATF_REQUIRE_EQ(0, getfh(path, &fhp));
check_audit(fds, adregex, pipefd);
Index: head/tests/sys/audit/file-attribute-access.c
===================================================================
--- head/tests/sys/audit/file-attribute-access.c
+++ head/tests/sys/audit/file-attribute-access.c
@@ -44,9 +44,9 @@
static fhandle_t fht;
static int filedesc, fhdesc;
static char extregex[80];
+static char buff[] = "ezio";
static struct stat statbuff;
static struct statfs statfsbuff;
-static const char *buff = "ezio";
static const char *auclass = "fa";
static const char *name = "authorname";
static const char *path = "fileforaudit";
Index: head/tests/sys/audit/file-attribute-modify.c
===================================================================
--- head/tests/sys/audit/file-attribute-modify.c
+++ head/tests/sys/audit/file-attribute-modify.c
@@ -46,7 +46,7 @@
static struct pollfd fds[1];
static mode_t mode = 0777;
static char extregex[80];
-static const char *buff = "ezio";
+static char buff[] = "ezio";
static const char *auclass = "fm";
static const char *name = "authorname";
static const char *path = "fileforaudit";
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 23, 4:21 PM (15 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27887494
Default Alt Text
D16000.diff (1 KB)
Attached To
Mode
D16000: Fix wrong sizeof() argument and descriptor leak reported by Coverity
Attached
Detach File
Event Timeline
Log In to Comment