Tiny Core Base > TCB Bugs
Tinycore 14.0 : chown: warning: '.' should be ':': 'tc.staff'
adb014:
Great release, and I have no particular problems. But I did notice annoying warning messages like
--- Code: ---chown: warning: '.' should be ':': 'tc.staff'
--- End code ---
in a number of scripts. These appear to be due to a deprecation of 'chown user.group' in 6.x kernels. The most annoying happens at boot. Could tc-functions be modified with
--- Code: ---sed -i -e 's/USER".staff/USER":staff/g' /etc/init.d/tc-functions
--- End code ---
Other fixes needed are
--- Code: ---sed -i -e 's/\(chown.*\)\.staff/\1:staff/g' /usr/bin/tce-setup
sed -i -e 's/\(chown.*\)\.staff/\1:staff/g' /usr/bin/tce-setdrive
--- End code ---
But there are probably others as well
curaga:
I don't see that? Are you using GNU chown?
edit: Pushed the change, as it doesn't hurt.
Rich:
Hi curaga
I just noticed it today booting TC14 x86_64:
aus9:
I wonder if this is relevant to the tc:staff report by Rich?
--- Code: ---root@box:/home/tc# ls -al /root
total 16
drwxrwxr-x 2 root staff 120 Apr 21 01:55 .
drwxr-xr-x 17 tc staff 400 Apr 21 01:21 ..
-rw-rw-r-- 1 root staff 248 Apr 12 15:38 .Xdefaults
-rw------- 1 root root 16 Apr 21 01:56 .ash_history
-rw-r--r-- 1 root root 29 Dec 29 15:24 .bashrc
-rw-rw-r-- 1 root staff 278 Apr 12 15:38 .profile
--- End code ---
and if that is true then maybe this is true for ONE of the root:staff
--- Code: ---ls -al /usr/local/tc.installed | less
drwxrwxr-x 2 root staff 4200 Mar 25 2021 ./
drwxr-xr-x 10 1000 staff 200 Mar 25 2021 ../
SNIP
--- End code ---
Rich:
Hi aus9
--- Quote from: aus9 on April 20, 2023, 10:01:28 PM ---I wonder if this is relevant to the tc:staff report by Rich? ...
--- End quote ---
A. No, it's about using a colon instead of a period between OWNER and GROUP
as a field separator when executing chown.
Q. What's wrong with using a period?
A. A USER or GROUP name can contain a period.
Q. Can't a name contain a colon?
A. No. That would break /etc/passwd which uses a colon as the field separator.
Navigation
[0] Message Index
[#] Next page
Go to full version