The current path to getty on Linux is /etc/getty, afaict.
So use /sbin/getty.
Also, /usr/local/bin is used on Linux as well as BSD. So add it to the default 
path.

Thanks,
Isaac Dunham

PS: Copying policy:
All my contributions to this project may be relicensed as the project decides.
commit 8b9137ad1ac9ead907bd6d995f905ec8b9c7c314
Author: Isaac Dunham <idun...@lavabit.com>
Date:   Sun Sep 22 17:15:06 2013 -0700

    dtlogin: use proper path to getty and /usr/local/bin in path on Linux

diff --git a/cde/programs/dtlogin/config/Xconfig.src b/cde/programs/dtlogin/config/Xconfig.src
index 57f0ec9..ad6ba47 100644
--- a/cde/programs/dtlogin/config/Xconfig.src
+++ b/cde/programs/dtlogin/config/Xconfig.src
@@ -135,9 +135,7 @@ XCOMM  To specify a default user PATH environment variable.
 XCOMM
 XCOMM  Dtlogin*userPath:          <path>
 
-#if defined(linux)
-Dtlogin*userPath:          /bin:/usr/bin:/sbin:/usr/sbin:CDE_INSTALLATION_TOP/bin
-#elif defined(CSRG_BASED)
+#if defined(linux) || defined(CSRG_BASED)
 Dtlogin*userPath:          /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:CDE_INSTALLATION_TOP/bin
 #endif
 
diff --git a/cde/programs/dtlogin/dm.c b/cde/programs/dtlogin/dm.c
index ca5c21c..59b99cf 100644
--- a/cde/programs/dtlogin/dm.c
+++ b/cde/programs/dtlogin/dm.c
@@ -1496,6 +1496,8 @@ SetTitle( char *name, char *ptr )
 #define GETTYPATH "/usr/sbin/getty"
 #elif defined(__OpenBSD__)
 #define GETTYPATH "/usr/libexec/getty"
+#elif defined(__linux)
+#define GETTYPATH "/sbin/getty"
 #elif !defined (__apollo)
 #define GETTYPATH "/etc/getty"
 #endif
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to