mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
2001-11-04 Roland McGrath <roland@frob.com>
* hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags parameter to dir_mkfile.
This commit is contained in:
parent
fb4fb5428d
commit
0bfb44417d
@ -1,5 +1,5 @@
|
|||||||
/* Set a host configuration item kept as the whole contents of a file.
|
/* Set a host configuration item kept as the whole contents of a file.
|
||||||
Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1996,97,99,2001 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -34,7 +34,7 @@ _hurd_set_host_config (const char *item, const char *value, size_t valuelen)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Create a new node. */
|
/* Create a new node. */
|
||||||
err = __dir_mkfile (dir, O_CREAT|O_TRUNC, 0644, &new);
|
err = __dir_mkfile (dir, O_WRONLY, 0644, &new);
|
||||||
if (! err)
|
if (! err)
|
||||||
{
|
{
|
||||||
/* Write the contents. */
|
/* Write the contents. */
|
||||||
|
Loading…
Reference in New Issue
Block a user