Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user option is not working as expected #337

Open
Guillaume-ATZ opened this issue Dec 19, 2024 · 0 comments
Open

user option is not working as expected #337

Guillaume-ATZ opened this issue Dec 19, 2024 · 0 comments

Comments

@Guillaume-ATZ
Copy link

Hello,

When we index using -u option their will not have any stats for my specific user if my user is not the owner of the first level directory

Now If we index duc-test for user1 we get nothing 1 dir but no files

duc index -vp /tmp/duc-test/ -u user1 -d user1.db
Writing to database "user1.db"
Indexed 0 files and 1 directories, (0B apparent, 0B actual) in 0.00 secs.

But if we index starting at the rootsubdir level for user1 we will get the data because in that specific folder user1 is the owner of 1 dir.

duc-test/
├── dir1                  # root is owner of this dir, but user1 as access
│   └── user1             # user1 is the ownr of this dir
│       └── rootsubdir    # root is the owner of this dir, but user1 as access
│           └── user1     # user1 is the owner of this dir
│               └── etc.tar
└── dir2

The expected behavior would be to traverse all directory and capture user1 file usage wether or not they own a directory ? Is it the expected behavior ?

This has been seen with 1.4.4 1.4.5 and 1.5.0.rc1

duc --version
duc version: 1.5.0-rc1
options: cairo x11 ui tkrzw

Best,

Guillaume

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant