File 03_rungetty-disable_path.patch of Package rungetty

Index: rungetty-1.2/rungetty.c
===================================================================
--- rungetty-1.2.orig/rungetty.c
+++ rungetty-1.2/rungetty.c
@@ -587,7 +587,7 @@ main (int argc, char **argv)
 #else
   putenv ("TERM=vt100");
 #endif
-  putenv ("PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin");
+  /* disabled -- get path from init: putenv ("PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin"); */
 
   /* flush input and output queues, important for modems */
   ioctl (0, TCFLSH, 2);
openSUSE Build Service is sponsored by