Diff for /loncom/Attic/lcuseradd between versions 1.40 and 1.41

version 1.40, 2006/12/05 14:46:04 version 1.41, 2007/03/28 20:43:37
Line 357  if (-e '/var/run/httpd.pid') { Line 357  if (-e '/var/run/httpd.pid') {
   
 if ($pidfile) {  if ($pidfile) {
     print "lcuseradd Apache restart\n" unless $noprint;      print "lcuseradd Apache restart\n" unless $noprint;
     open(PID,<$pidfile);      open(PID,"<$pidfile");
     my $pid=<PID>;      my $pid=<PID>;
     close(PID);      close(PID);
     $pid=~ /(\D+)/;      $pid=~ /(\D+)/;
Line 379  sub enable_root_capability { Line 379  sub enable_root_capability {
     } else {      } else {
  # root capability is already enabled   # root capability is already enabled
     }      }
       if ($wwwid == $>) {
    print("Failed to become root\n") unless $noprint;
       } else {
    print("Became root\n") unless $noprint;
       }
     return $>;      return $>;
 }  }
   

Removed from v.1.40  
changed lines
  Added in v.1.41


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>