Current-Users archive

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

Re: dynamically created /dev/null is a regular file



On Jun 25, 12:06pm, brook%nmsu.edu@localhost (Brook Milligan) wrote:
-- Subject: Re: dynamically created /dev/null is a regular file

| On Jun 25, 2015, at 11:15 AM, Christos Zoulas wrote:
| > Why isn't MAKEDEV invoked with -f?
| 
| Are you asking why we don't apply a patch like the following?

Yes, that would "fix" broken device entries.

christos

| 
| -- sbin/init.c.orig	2015-06-25 12:02:34.000000000 -0600
| +++ sbin/init.c	2015-06-25 12:03:28.000000000 -0600
| @@ -1709,7 +1709,7 @@
|  			(void)execl(INIT_BSHELL, "sh",
|  			    access("./MAKEDEV", X_OK) == 0
|  				? "./MAKEDEV" : "/etc/MAKEDEV",
| -			    "-MM", "init", NULL); 
| +			    "-MM", "-f", "init", NULL); 
|  		_exit(10);
|  		/* NOTREACHED */
|  
| Cheers,
| Brook
-- End of excerpt from Brook Milligan




Home | Main Index | Thread Index | Old Index