Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : apps/entrance

Dir     : e17/apps/entrance/src/daemon


Modified Files:
        auth.c 


Log Message:
Fix compilation on OpenBSD

===================================================================
RCS file: /cvs/e/e17/apps/entrance/src/daemon/auth.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- auth.c      25 Jul 2007 17:00:53 -0000      1.21
+++ auth.c      7 Jul 2008 05:05:55 -0000       1.22
@@ -38,17 +38,17 @@
    entranced_md5_update(ctx, (unsigned char *) &pid, sizeof(pid));
 
 
-   if ((fd = open("/dev/random", O_RDONLY | O_NONBLOCK)) < 0)
+   if ((fd = open(ENTRANCE_RANDOM, O_RDONLY | O_NONBLOCK)) < 0)
    {
       entranced_debug
-         ("Cookie generation failed: could not open /dev/random\n");
+         ("Cookie generation failed: could not open " ENTRANCE_RANDOM "\n");
       return 0;
    }
 
    if ((r = read(fd, buf, sizeof(buf))) <= 0)
    {
       entranced_debug
-         ("Cookie generation failed: could not read /dev/random\n");
+         ("Cookie generation failed: could not read " ENTRANCE_RANDOM "\n");
       return 0;
    }
 



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to