Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
5951f5f9
Commit
5951f5f9
authored
Mar 26, 2007
by
Mike Hibler
Browse files
Yarg! Forgot the mode argument for open with O_CREAT.
Led to some really interesting file permissions!
parent
7ef2c06d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/pcapper/pcapper.c
View file @
5951f5f9
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-200
6
University of Utah and the Flux Group.
* Copyright (c) 2000-200
7
University of Utah and the Flux Group.
* All rights reserved.
*/
...
...
@@ -904,7 +904,7 @@ int main (int argc, char **argv) {
fd
=
1
;
}
else
{
fd
=
open
(
filenames
[
i
],
O_WRONLY
|
O_CREAT
|
O_TRUNC
);
O_WRONLY
|
O_CREAT
|
O_TRUNC
,
0600
);
if
(
fd
<
0
)
{
perror
(
"Opening savefile"
);
exit
(
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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