- Nov 07, 2018
-
-
Tommaso Tocci authored
pos is already set to zero in the OpenFile constructor, thus there is no need to do that also in the OpenDir constructor
-
- Nov 05, 2018
-
-
Tommaso Tocci authored
fix buffer overflow: readlink write See merge request zdvresearch_bsc/adafs!94
-
Tommaso Tocci authored
readlink write at most PATH_MAX, thus we need to support also the worst case scenario in which all the bytes are written.
-
Marc Vef authored
Bugfix: links to pipe raise exception See merge request zdvresearch_bsc/adafs!95
-
Tommaso Tocci authored
In the kernel VFS some file descriptors under /proc/<PID>/fd/ could be links to a pipe, this is a special case in which the `readlink` function would not work. So when we detect this case we forward to kernel
-
Tommaso Tocci authored
Path resolution Closes #56 See merge request zdvresearch_bsc/adafs!91
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
During resolution of `..` component the last slash position won't be updated.
-
Tommaso Tocci authored
number of matched component should be decremented only when component that was counted as matched gets removed. for instance when `/tmp/ext/..` gets resolved to `/tmp` we should not decrement the matched counter cause we didn't match ext before.
-
Tommaso Tocci authored
when resolving path we don't want always to resolve also the last components if it is a link. Cause in some cases we want exactly the path of that link and not the one it points to. lstat and readlink are some example of functions that don't want to resolve the last link.
-
Tommaso Tocci authored
-
- Nov 04, 2018
-
-
Tommaso Tocci authored
relativize path now accepts a file descriptor. If fd is AT_FDCWD relative path need to be considered with respect to the current working directory. Otherwise the path is relative to the directory with the given file descriptor
-
Tommaso Tocci authored
when the resolved path is the root dir we were returning an empty string
-
Tommaso Tocci authored
when only PSP are given as input path '//////', we got segfault
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
Instead of using the more complex adafs_pread function now is possible to use adafs_read when it is necessary to read starting from the current file position
-
Tommaso Tocci authored
Fix typo
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
when size is 0 the buffer to host the path of CWD must be allocated by us
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
Always store complete path as CWD instead of internal and relative ones
-
Tommaso Tocci authored
`tar` and other gnu coreutils are using __openat{64,}_2 variant. We need to intercept also that apart of the main `openat` function. StackOverflow related question [1] [1]: https://stackoverflow.com/questions/9161116/intercepting-the-openat-system-call-for-gnu-tar
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-
Tommaso Tocci authored
-