File: bad-manpage.cc

package info (click to toggle)
pstreams 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 412 kB
  • sloc: cpp: 1,912; makefile: 126; sh: 18
file content (14 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <fstream>

#define BAD_MANPAGE "/usr/share/man/man3/deprecated.3.gz"

int main() {
  using namespace std;
  ifstream bad_manpage(BAD_MANPAGE, ifstream::in);
  if (!bad_manpage.fail()) {
    cerr << "Bad manpage installed: " << BAD_MANPAGE << endl;
    return 1;
  }
  return 0;
}