Fix screen locking for BSDs
authorUlrich Wilkens <mail@uwilkens.de>
Tue, 28 May 2013 22:30:06 +0000 (00:30 +0200)
committerJon Trulson <jon@radscan.com>
Thu, 30 May 2013 02:00:43 +0000 (20:00 -0600)
cde/programs/dtsession/Dtsession.src
cde/programs/dtsession/SmMain.c
cde/programs/dtsession/SmScreen.c

index e4f12007c7be3d21234c81fa1794a47201a94fcf..ca3bd45fff7beccf3a44d7664b11e2210019359c 100644 (file)
@@ -23,6 +23,8 @@ XCOMM include "Dt"
 Dtsession*drawArea.background: black
 #ifdef __osf__
 Dtsession*lockLabelPixmap.imageName: DECDtlogo
+#elif __FreeBSD__
+Dtsession*lockLabelPixmap.imageName: FreeBSDDtlogo
 #else
 Dtsession*lockLabelPixmap.imageName: Dtlogo
 #endif
index 5d94de318d7ebc2b59735dbe5074ec9b3698d92b..3b65f753f1e4437818e2b61fe622d54c932e1b7a 100644 (file)
@@ -101,6 +101,9 @@ static int RegisterX11ScreenSaver(Display *display, int *ssEventType);
 #ifdef SVR4
 #define SECURE_SYS_PATH "/etc/shadow"
 #endif
+#ifdef CSRG_BASED
+#define SECURE_SYS_PATH "/etc/master.passwd"
+#endif
 
 
 \f
index 7c02a7105ff926ad5e5076b49926f6b65c39cd3d..ece158a88e9e83a631b0c35fdd819d2b44d1d868 100644 (file)
@@ -239,7 +239,7 @@ SmSaverParseSaverList(
    int i = 0;
    char * tmpStr;
    int len = strlen(saverList);
-   int bytes = sizeof(int);
+   int bytes = sizeof(long);
    char *p;
    SmSaverParseStruct *pstruct;