Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Ezstream
Commits
bcb097a1
Commit
bcb097a1
authored
Sep 25, 2017
by
Moritz Grimm
Browse files
Remove more superfluous access() checks
Removes TOCTOU complaints from Coverity
parent
b19b746e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/check_util.c
View file @
bcb097a1
...
...
@@ -25,9 +25,7 @@ START_TEST(test_util_write_pid_file)
ck_assert_int_eq
(
fclose
(
pidfile_2
),
0
);
unlink
(
BUILDDIR
"/check_util-write_pid_file.pid"
);
ck_assert_int_ne
(
access
(
BUILDDIR
"/check_util-write_pid_file.pid"
,
F_OK
),
0
);
ck_assert_int_eq
(
util_write_pid_file
(
BUILDDIR
"/check_util-write_pid_file.pid"
),
0
);
ck_assert_int_eq
(
access
(
BUILDDIR
"/check_util-write_pid_file.pid"
,
F_OK
),
0
);
ck_assert_int_eq
(
util_write_pid_file
(
BUILDDIR
"/check_util-write_pid_file.pid"
),
0
);
ck_assert_int_eq
(
unlink
(
BUILDDIR
"/check_util-write_pid_file.pid"
),
0
);
ck_assert_int_ne
(
access
(
BUILDDIR
"/check_util-write_pid_file.pid"
,
F_OK
),
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment