bdbf09afe8d2cd07513a908431a50e641cecc28d
Stefan Schuermans add copyright & license

Stefan Schuermans authored 4 years ago

1) /**
2)  * Permissioner: set file ownerships and permissions
3)  * Copyright 2020: Stefan Schuermans, Aachen, Germany <stefan@schuermans.info>
4)  * Copyleft: GNU GENERAL PUBLIC LICENSE version 3 (see LICENSE)
5)  */
6) 
Stefan Schuermans fix long shutdown delay aft...

Stefan Schuermans authored 4 years ago

7) #include <permissioner/Callback.h>
Stefan Schuermans finish binaries, add readme

Stefan Schuermans authored 4 years ago

8) #include <permissioner/Config.h>
9) 
10) #include <cstdlib>
11) #include <iostream>
12) #include <stdexcept>
13) #include <string>
14) 
15) int main(int argc, char const **argv) {
16)   if (argc != 2) {
17)     std::cerr << "usage: " << argv[0] << " <config file>" << std::endl;
18)     return EXIT_FAILURE;
19)   }
20)   std::string configFileName(argv[1]);
21) 
22)   try {
23)     Config config;
24)     config.parseFile(configFileName);
Stefan Schuermans fix long shutdown delay aft...

Stefan Schuermans authored 4 years ago

25)     Callback callback;
26)     config.setPermissions(callback);