QString ksniffPath = KStandardDirs::findExe("ksniff"); if (ksniffPath.isEmpty()) { KMessageBox::sorry(0L, i18n("

The 'ksniff' executable was not found in your PATH
" "environment. You need it to capture packets.

" \ "Your installation is not correct.

")); return -1; } if (lstat(ksniffPath.ascii(), &statbuf) == -1) { KMessageBox::sorry(0L, i18n("

Cannot determine the 'ksniff' executable properties.
" \ "Your installation is not correct.

")); return -1; } if ((S_ISUID & statbuf.st_mode) != S_ISUID) { KMessageBox::sorry(0L, i18n("

The 'ksniff' executable needs root privileges to capture packets.
" \ "Your installation is not correct.

")); return -1; }