diff options
author | Roland McGrath <roland@gnu.org> | 2001-11-04 10:31:13 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-11-04 10:31:13 +0000 |
commit | 0bfb44417d7f23bd3f87038771f66fe0e40ba98a (patch) | |
tree | 1ecc4f2e1cc8b1066fdac3d348d75bebb8990f76 /hurd | |
parent | fb4fb5428d50d3d0c092a60f5ef4410f250ed2c4 (diff) | |
download | glibc-0bfb44417d7f23bd3f87038771f66fe0e40ba98a.tar.gz |
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.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/set-host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hurd/set-host.c b/hurd/set-host.c index cb7687d589..4e8c5c54f5 100644 --- a/hurd/set-host.c +++ b/hurd/set-host.c @@ -1,5 +1,5 @@ /* 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. 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; /* Create a new node. */ - err = __dir_mkfile (dir, O_CREAT|O_TRUNC, 0644, &new); + err = __dir_mkfile (dir, O_WRONLY, 0644, &new); if (! err) { /* Write the contents. */ |