Added proper license headers

This commit is contained in:
BritishTeapot
2025-03-10 18:09:05 +01:00
parent 64289b2786
commit d7c20a5d5f
7 changed files with 86 additions and 66 deletions

View File

@@ -3,26 +3,12 @@
Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
Copyright (C) 2011 Sebastian Pipping <sebastian@pipping.org>
This program can be distributed under the terms of the GNU GPLv2.
See the file COPYING.
*/
ICFS: Interactively Controlled File System
Copyright (C) 2024-2025 Fedir Kovalov
/** @file
*
* This file system mirrors the existing file system hierarchy of the
* system, starting at the root file system. This is implemented by
* just "passing through" all requests to the corresponding user-space
* libc functions. This implementation is a little more sophisticated
* than the one in passthrough.c, so performance is not quite as bad.
*
* Compile with:
*
* gcc -Wall passthrough_fh.c `pkg-config fuse3 --cflags --libs` -lulockmgr
* -o passthrough_fh
*
* ## Source code ##
* \include passthrough_fh.c
*/
This program can be distributed under the terms of the GNU GPLv2.
See the file LICENSE.
*/
#define FUSE_USE_VERSION 31
@@ -42,8 +28,6 @@ const char *mountpoint = NULL;
int main(int argc, char *argv[]) {
umask(0);
// FUSE won't tell us the mountpoint on it's own, so we need to extract it
// ourselves.
mountpoint = realpath(argv[argc - 1], NULL);
int ret = source_init(mountpoint);
@@ -59,6 +43,7 @@ int main(int argc, char *argv[]) {
}
ret = fuse_main(argc, argv, get_fuse_operations(), NULL);
free(mountpoint);
return ret;
}