random.c (26627) | random.c (28979) |
---|---|
1/* 2 * Copyright (c) 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Guy Harris at Network Appliance Corp. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 52 unchanged lines hidden (view full) --- 61 int argc; 62 char *argv[]; 63{ 64 extern int optind; 65 double denom; 66 int ch, random_exit, selected, unbuffer_output; 67 char *ep; 68 | 1/* 2 * Copyright (c) 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Guy Harris at Network Appliance Corp. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 52 unchanged lines hidden (view full) --- 61 int argc; 62 char *argv[]; 63{ 64 extern int optind; 65 double denom; 66 int ch, random_exit, selected, unbuffer_output; 67 char *ep; 68 |
69 /* revoke */ 70 setegid(getgid()); 71 setgid(getgid()); 72 |
|
69 random_exit = unbuffer_output = 0; 70 while ((ch = getopt(argc, argv, "er")) != EOF) 71 switch (ch) { 72 case 'e': 73 random_exit = 1; 74 break; 75 case 'r': 76 unbuffer_output = 1; --- 73 unchanged lines hidden --- | 73 random_exit = unbuffer_output = 0; 74 while ((ch = getopt(argc, argv, "er")) != EOF) 75 switch (ch) { 76 case 'e': 77 random_exit = 1; 78 break; 79 case 'r': 80 unbuffer_output = 1; --- 73 unchanged lines hidden --- |