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

Moving files results in destroyed Permissions under Linux. #28

Closed
revast opened this issue Mar 17, 2018 · 21 comments
Closed

Moving files results in destroyed Permissions under Linux. #28

revast opened this issue Mar 17, 2018 · 21 comments

Comments

@revast
Copy link

revast commented Mar 17, 2018

I use ultracopier from commandline:
(1.4.0.5 fresh from master, but this also happen with the 1.2.3.6 version)

ultracopier mv ~/Downloads/luckybackup_0.4.9-1_amd64.deb ~/Videos

what should happen:

file gets moved to ~/Videos

permissions via ls -al:
-rw-rw-r-- 1 hero hero 4.8M Mar 15 11:26 luckybackup_0.4.9-1_amd64.deb

via filebrowser:

screenshot_2018-03-17_10-18-10

what happens:

file gets moved to ~/Videos

permissions via ls -al:

---------- 1 hero hero 4.8M Mar 15 11:26 luckybackup_0.4.9-1_amd64.deb

via filebrowser:

screenshot_2018-03-17_10-17-14

@alphaonex86
Copy link
Owner

Hi,
Can you test if http://doc.qt.io/qt-5/qfile.html#setPermissions-1 + http://doc.qt.io/qt-5/qfile.html#permissions work on your system? I just call this functions.
Cheers,

@revast
Copy link
Author

revast commented Mar 17, 2018

not really a coder, so would be too much work to find out how. If you can write me a simple test program I can compile and try it. I use ubuntu 16.04, and my qt version is 5.6, 5.6.1+dfsg-3ubuntu1xenialoverlay14+fix1 from kubuntu ppa.

I try to compile it against a newer qt version (qt5.9.4) to see if this happens there, too

@alphaonex86
Copy link
Owner

Try a newer version of Qt else this will be fixed with the new standard C++17, the support will be done into the next years at compiler part.

@revast
Copy link
Author

revast commented Mar 17, 2018

ok, I have tried with qt 5.9.4, and its the same problem.

I do not think it's the compiler's fault? There must be a way to fix this. Maybe you could hack together a test program to try if it's really qt's fault?

@alphaonex86
Copy link
Owner

No, I don't think.
Test this code: https://pastebin.com/9Kvk1vmN need have into the current path: the file "source" and the file "destination"
Send me the output console or debug report to see if contains "Unable to get the source file permission" and "Unable to set the destination file permission"
See if it's on all file into all path, or just into specific case.

@revast
Copy link
Author

revast commented Mar 17, 2018

hmm. I tried to compile with:

put file called test.c in build folder
qmake -project
qmake
make

but no luck so far:

https://pastebin.com/wTJmucyY

do you have a hint? or should I try with qtbuilder?

@alphaonex86
Copy link
Owner

With qt creator, new project, console application, replace the .c file content by the paste bin, compile, run, look into application output

@revast
Copy link
Author

revast commented Mar 18, 2018

ok I have managed to do so
Just to be shure that its right what I did:
I compiled the program, then I did:
touch source
touch destiniation
./test

, no output with qt 5.9.4 as well as qt 5.6.1

@revast
Copy link
Author

revast commented Mar 19, 2018

I guess that it works like it should then.
Does that now mean the problem is not related to qt itself?

@alphaonex86
Copy link
Owner

and the destination permission is well set as source permission?

@revast
Copy link
Author

revast commented Mar 19, 2018

yes. I tried different combinations of permissions.. It worked as is should...

@alphaonex86
Copy link
Owner

ok, then this same file, try with ultracopier in debug mode, send me the debug repport

@revast
Copy link
Author

revast commented Mar 19, 2018

ok, I hope I did it right. https://pastebin.com/bh8udZtm

@alphaonex86
Copy link
Owner

Yes, you have do right, contact me into few day if I forgot

@alphaonex86
Copy link
Owner

Hi, can you try the new version into git?

@revast
Copy link
Author

revast commented Mar 20, 2018

Yes! I can confirm that it is fixed now.

@alphaonex86
Copy link
Owner

Then I will publish the version 1.4.0.6 into this days, thanks for your repport, contact me in private to have a ultimate version key

@alphaonex86
Copy link
Owner

I have pushed a new version, it work too?

@revast
Copy link
Author

revast commented Mar 22, 2018

yes, can confirm. I just recompiled and it works as it should.

@alphaonex86
Copy link
Owner

ok, 1.4.0.6 release, include this fix

@revast
Copy link
Author

revast commented Mar 22, 2018

cool! Thanks for your enthusiasm.

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

2 participants