bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hostname again.


From: James Morrison
Subject: hostname again.
Date: Wed, 30 Jan 2002 22:17:19 -0800 (PST)

 I finally got to understanding the change that was made in 
libc/hurd/set-host.c by Roland a couple months ago.  However, his fix
still has the same problem.  I have the debian libc0.2 package
installed which is from Jan 04 so I assume it has Rolands fix.  

Before I get to the patch, here is an interesting error:

Fatal error, aborting.
load average of 17 is too high

Anyway, I think this should fix the problem:

Index: set-host.c
===================================================================
RCS file: /cvs/glibc/libc/hurd/set-host.c,v
retrieving revision 1.7
diff -u -r1.7 set-host.c
--- set-host.c  2001/11/04 10:31:13     1.7
+++ set-host.c  2002/01/31 06:08:40
@@ -34,7 +34,7 @@
     return -1;

   /* Create a new node.  */
-  err = __dir_mkfile (dir, O_WRONLY, 0644, &new);
+  err = __dir_mkfile (dir, O_CREAT|O_WRITE, 0644, &new);
   if (! err)
     { 
       /* Write the contents.  */



=====
James Morrison
   University of Waterloo
   Computer Science - Digital Hardware
   2A co-op
http://hurd.dyndns.org

Anyone refering this as 'Open Source' shall be eaten by a GNU

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]