"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/wall.c" between
sysvinit-2.98.tar.xz and sysvinit-2.99.tar.xz

About: SysVinit - Linux System V style init programs.

wall.c  (sysvinit-2.98.tar.xz):wall.c  (sysvinit-2.99.tar.xz)
skipping to change at line 70 skipping to change at line 70
while((ch = getopt(argc, argv, "n")) != EOF) while((ch = getopt(argc, argv, "n")) != EOF)
switch(ch) { switch(ch) {
case 'n': case 'n':
/* /*
* Undocumented option for suppressing * Undocumented option for suppressing
* banner from rpc.rwalld. Only works if * banner from rpc.rwalld. Only works if
* we are root or if we're NOT setgid. * we are root or if we're NOT setgid.
*/ */
if (geteuid() != 0 && getgid() != getegid()) { if (geteuid() != 0 && getgid() != getegid()) {
fprintf(stderr, "wall -n: not priviliged\n"); fprintf(stderr, "wall -n: not privileged\n");
exit(1); exit(1);
} }
remote = 1; remote = 1;
break; break;
default: default:
fprintf(stderr, "usage: wall [message]\n"); fprintf(stderr, "usage: wall [message]\n");
return 1; return 1;
break; break;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)