darling icon indicating copy to clipboard operation
darling copied to clipboard

Files created with root ownership in user folder

Open superbonaci opened this issue 4 years ago • 4 comments

This is the error when trying to remove the darling folder:

$ rm -rf darling/
rm: cannot remove 'darling/build/libexec/darling/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a': Permission denied
rm: cannot remove 'darling/build/libexec/darling/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib': Permission denied

This is why, two symlinks are created as root in my user folder, which should not happen:

$ ls -lsa darling/build/libexec/darling/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/*
0 lrwxrwxrwx 1 root root 15 Sep 14 08:18 darling/build/libexec/darling/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a -> ../../../Python
0 lrwxrwxrwx 1 root root 15 Sep 14 08:18 darling/build/libexec/darling/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib -> ../../../Python

superbonaci avatar Sep 19 '21 18:09 superbonaci

just remove it with sudo rm -rf

AldairSoraka avatar Nov 11 '21 05:11 AldairSoraka

I already know that that's not the point.

superbonaci avatar Nov 12 '21 08:11 superbonaci

This occurs because of a minor build issue where recently created and unmodified files are (incorrectly) detected as being out-of-date and rebuilt during the install step. Since the install step is run as root, the rebuilt files are owned by root. The exact cause of why CMake incorrectly detects those files as out-of-date is unknown (since it hasn't been investigated yet).

facekapow avatar Nov 13 '21 01:11 facekapow

I already know that that's not the point.

oh, sorry

AldairSoraka avatar Nov 13 '21 23:11 AldairSoraka