summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-08-08 00:03:01 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-08-08 00:03:01 +0000
commitc994478df90012cfdec53c41b7ae43d9f7e86fd9 (patch)
treebd6cd91ff4ef7c15033ff8c9e0867a36d5320753 /gnu/usr.bin/binutils/gdb
parenta90bf9416903f96571dfcee28c733371cbd4c50f (diff)
Add missing mode argument to open(2); noticed by
Grudge Mason <grudge_mason@hotmail.com>. Note that this code is not compiled in.
Diffstat (limited to 'gnu/usr.bin/binutils/gdb')
-rw-r--r--gnu/usr.bin/binutils/gdb/29k-share/udi/udip2soc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/gdb/29k-share/udi/udip2soc.c b/gnu/usr.bin/binutils/gdb/29k-share/udi/udip2soc.c
index e92dead8e3b..7046a4e8845 100644
--- a/gnu/usr.bin/binutils/gdb/29k-share/udi/udip2soc.c
+++ b/gnu/usr.bin/binutils/gdb/29k-share/udi/udip2soc.c
@@ -280,7 +280,7 @@ UDIConnect(Config, Session)
int f;
sprintf(soc_con[cnt].tip_string,"/tmp/U%d", getpid() + pos);
- f = open(soc_con[cnt].tip_string, O_CREAT);
+ f = open(soc_con[cnt].tip_string, O_CREAT, 0600);
if (f == -1)
continue;