LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-27-2022, 08:15 PM   #1
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 231

Rep: Reputation: 45
diff -u /etc/rc.d/rc.mM /etc/rc.d/rc.M.new a maybe minor nit ...


Hmm , relative references to executables in the start up ...

Code:
-# Start Samba (a file/print server for Win95/NT machines).
+# Start the mail server. Try the rc.sendmail script first, then try rc.postfix.
+if [ -x /etc/rc.d/rc.sendmail -a -x usr/sbin/makemap ]; then
+  /etc/rc.d/rc.sendmail start
+elif [ -x /etc/rc.d/rc.postfix -a -x usr/sbin/postdrop ]; then
+  /etc/rc.d/rc.postfix start
+fi
 
Old 03-28-2022, 05:01 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
It took me a minute to realize what was going on with this thread.

For any confused by it like I was, babydr is commenting on Pat's use of relative directories for calling usr/sbin/makemap and usr/sbin/postdrop instead of /usr/sbin/makemap and /usr/sbin/postdrop.

I'm not sure what the $PWD is in the starting scripts. If it is /, then the scripts should still work, although, it's not a bad idea to change it to use absolute paths.
 
2 members found this post helpful.
Old 03-28-2022, 05:22 PM   #3
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by bassmadrigal View Post
It took me a minute to realize what was going on with this thread.

For any confused by it like I was, babydr is commenting on Pat's use of relative directories for calling usr/sbin/makemap and usr/sbin/postdrop instead of /usr/sbin/makemap and /usr/sbin/postdrop.

I'm not sure what the $PWD is in the starting scripts. If it is /, then the scripts should still work, although, it's not a bad idea to change it to use absolute paths.
I was curious so I put in an

Code:
echo "$PWD"
right after the line "Going multiuser" and at the very end of the script and it is '/'
 
2 members found this post helpful.
Old 03-28-2022, 05:36 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Mechanikx View Post
I was curious so I put in an

Code:
echo "$PWD"
right after the line "Going multiuser" and at the very end of the script and it is '/'
That's good it isn't actually broken using relative paths to those commands.

Thanks for checking, I was thinking of doing that when I get home.
 
Old 03-28-2022, 06:01 PM   #5
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by bassmadrigal View Post
That's good it isn't actually broken using relative paths to those commands.

Thanks for checking, I was thinking of doing that when I get home.
No worries.

I looked through the rest of the script and there aren't any more relative paths that I can see. So, if it is just a typo it's a sneaky one because since you're in / it still works.
 
1 members found this post helpful.
Old 03-28-2022, 07:45 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Mechanikx View Post
No worries.

I looked through the rest of the script and there aren't any more relative paths that I can see. So, if it is just a typo it's a sneaky one because since you're in / it still works.
Yep, I checked both rc.M and rc.S for the same
 
1 members found this post helpful.
Old 03-28-2022, 08:02 PM   #7
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by bassmadrigal View Post
Yep, I checked both rc.M and rc.S for the same
I guess we'll see in the changelog if it's an accident or on purpose. But I can't think of a reason why a relative path would be used.
 
Old 03-29-2022, 03:35 PM   #8
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 907

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by Mechanikx View Post
I guess we'll see in the changelog if it's an accident or on purpose. But I can't think of a reason why a relative path would be used.
Code:
Tue Mar 29 20:16:24 UTC 2022
a/sysvinit-scripts-15.0-noarch-9.txz:  Rebuilt.
  rc.M: Fix cosmetic mistake where a couple of paths were relative instead of
  absolute. Thanks to babydr.
 
2 members found this post helpful.
Old 03-30-2022, 06:39 PM   #9
johnny23
Member
 
Registered: Aug 2009
Location: Lapu-Lapu City, Philippines
Distribution: Slackware
Posts: 62

Rep: Reputation: 44
Quote:
Originally Posted by drumz View Post
Code:
Tue Mar 29 20:16:24 UTC 2022
a/sysvinit-scripts-15.0-noarch-9.txz:  Rebuilt.
  rc.M: Fix cosmetic mistake where a couple of paths were relative instead of
  absolute. Thanks to babydr.
It's in the -current changelog but not the -15.0 ... it should be in both.
 
Old 03-30-2022, 07:06 PM   #10
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by johnny23 View Post
It's in the -current changelog but not the -15.0 ... it should be in both.
I don't think it will be in 15.0 since it only receives security updates and this was a cosmetic fix.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a nit to report: missing icon in XFCE on -current chexmix Slackware 7 05-04-2009 07:13 AM
Nit: "exclamation" image is missing... sundialsvcs LQ Suggestions & Feedback 1 10-02-2008 08:42 AM
How To Block Websites? Maybe /etc/hosts (.deny maybe) How? aaron4katie Linux - Security 7 01-08-2007 04:58 PM
LXer: I’m Saint iGNUcius: Stallman tells NIT students LXer Syndicated Linux News 1 10-28-2006 12:27 PM
how to link php to mysql whe nit is not installed in default location. raosid Fedora 1 05-05-2006 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration