View previous topic :: View next topic |
Author |
Message |
lfs0a Tux's lil' helper
Joined: 19 Oct 2016 Posts: 136
|
Posted: Mon Dec 07, 2020 2:41 am Post subject: GHOST files in /etc/init.d |
|
|
Today after upgraded xorg-server,portage notified me that two files need to be update.(/etc/init.d/xdm;/etc/init.d/xdm-setup)
Then I go to see what is the difference between them.
Then I found "ls" not showing these two files!!!
But if I vim /etc/init.d/xdm,the file looks like there,file is not empty,looks like a nomal script file!But there is a "[New File]" at the status line of vim!!!
Anyone knows what happened? |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Mon Dec 07, 2020 6:10 am Post subject: |
|
|
/usr/share/vim/vimfiles/plugin/newinitd.vim autofills buffers in /etc/init.d if the file doesn't exist. Try ls -a instead. |
|
Back to top |
|
|
lfs0a Tux's lil' helper
Joined: 19 Oct 2016 Posts: 136
|
Posted: Mon Dec 07, 2020 9:28 am Post subject: |
|
|
Ant P. wrote: | /usr/share/vim/vimfiles/plugin/newinitd.vim autofills buffers in /etc/init.d if the file doesn't exist. Try ls -a instead. |
Ant P.
ls -a shows no "xdm" "xdm-setup" too.
If these two files does not exists,why portage said they need to be update? |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2852
|
Posted: Mon Dec 07, 2020 12:39 pm Post subject: |
|
|
lfs0a wrote: | ls -a shows no "xdm" "xdm-setup" too.
If these two files does not exists,why portage said they need to be update? | Maybe used to be there? Returning a file that was deleted also needs an update prompt, being missing could be a user configuration in itself.
Like it nags me everytime I rebuild openrc about returning 11 of its default runlevel entries + 6 init.d symlinks that I deleted, which reminds me I should just mask them at this point... |
|
Back to top |
|
|
lfs0a Tux's lil' helper
Joined: 19 Oct 2016 Posts: 136
|
Posted: Mon Dec 07, 2020 1:49 pm Post subject: |
|
|
Ionen wrote: | lfs0a wrote: | ls -a shows no "xdm" "xdm-setup" too.
If these two files does not exists,why portage said they need to be update? | Maybe used to be there? Returning a file that was deleted also needs an update prompt, being missing could be a user configuration in itself.
Like it nags me everytime I rebuild openrc about returning 11 of its default runlevel entries + 6 init.d symlinks that I deleted, which reminds me I should just mask them at this point... |
That's a possibility.
Fuck it! already updated.
Thanks for reply! |
|
Back to top |
|
|
|