[BACK]Return to dgamelaunch.c CVS log [TXT][DIR] Up to [contributed] / dgamelaunch-openbsd

Diff for /dgamelaunch-openbsd/dgamelaunch.c between version 1.4 and 1.7

version 1.4, 2021/03/15 14:49:34 version 1.7, 2021/04/02 10:52:15
Line 2163  readfile (int nolock)
Line 2163  readfile (int nolock)
       b = n;        b = n;
   
       /* pw field */        /* pw field */
         /* OpenBSD's implementation stores the password in hashed form.
          * crypt_checkpass takes care of validating the hashing so we
          * don't have to ensure the password field has a valid length */
   
   #ifndef(__OpenBSD__)
       while (*b != ':')        while (*b != ':')
         {          {
           users[f_num]->password[(b - n)] = *b;            users[f_num]->password[(b - n)] = *b;
Line 2172  readfile (int nolock)
Line 2177  readfile (int nolock)
             graceful_exit (102);              graceful_exit (102);
           }            }
         }          }
   #endif
   
       /* advance to next field */        /* advance to next field */
       n = b + 1;        n = b + 1;
Line 2865  main (int argc, char** argv)
Line 2871  main (int argc, char** argv)
           graceful_exit (3);            graceful_exit (3);
         }          }
   
   
   
       /* shed privs. this is done immediately after chroot. */        /* shed privs. this is done immediately after chroot. */
       if (setgroups (1, &globalconfig.shed_gid) == -1)        if (setgroups (1, &globalconfig.shed_gid) == -1)
         {          {
Line 2883  main (int argc, char** argv)
Line 2891  main (int argc, char** argv)
           perror ("setuid");            perror ("setuid");
           graceful_exit (6);            graceful_exit (6);
         }          }
   
   #if defined(__OpenBSD__)
         if ( pledge("stdio rpath wpath cpath fattr flock "
             "tty proc exec ps", NULL )==-1 )
           {
             perror("pledge");
             graceful_exit (301);
           }
   #endif
   
     }      }
   
   if (globalconfig.locale) {    if (globalconfig.locale) {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.7

CVSweb