Commit 5951f5f9 authored by Mike Hibler's avatar Mike Hibler

Yarg! Forgot the mode argument for open with O_CREAT.

Led to some really interesting file permissions!
parent 7ef2c06d
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2006 University of Utah and the Flux Group.
* Copyright (c) 2000-2007 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment