Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GHOST files in /etc/init.d
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lfs0a
Tux's lil' helper
Tux's lil' helper


Joined: 19 Oct 2016
Posts: 136

PostPosted: Mon Dec 07, 2020 2:41 am    Post subject: GHOST files in /etc/init.d Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Mon Dec 07, 2020 6:10 am    Post subject: Reply with quote

/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
View user's profile Send private message
lfs0a
Tux's lil' helper
Tux's lil' helper


Joined: 19 Oct 2016
Posts: 136

PostPosted: Mon Dec 07, 2020 9:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2852

PostPosted: Mon Dec 07, 2020 12:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
lfs0a
Tux's lil' helper
Tux's lil' helper


Joined: 19 Oct 2016
Posts: 136

PostPosted: Mon Dec 07, 2020 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum