bugGNU Accounting Utilities - Bugs: bug #34749, RFE: allow accton to be run as...

 
 

bug #34749: RFE: allow accton to be run as symlink acctoff by understanding $0

Submitted by:  Bill McGonigle <bill_mcgonigle>
Submitted on:  Fri 04 Nov 2011 09:13:14 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Closed

Discussion locked!

 

Tue 28 Feb 2012 11:38:28 PM UTC, comment #1:

This is a legacy from an epoch back in the early 80ies and is still used in any BSD (even latest OS X) as today.

Markus Gothe <nihilus>
Project Administrator
Fri 04 Nov 2011 09:13:14 PM UTC, original submission:

Running 'accton' to turn off accounting is counter-intuitive and error-prone for programming.

The convention seems to be to have an -off symlink to an -on binary and have that binary understand its behavior via $0.

e.g.:

lrwxrwxrwx 1 root root 6 Aug 13 17:46 /sbin/swapoff -> swapon
-rwxr-xr-x 1 root root 28840 Jul 11 07:35 /sbin/swapon

util-linux has gone so far at this point as to remove any ability to access the 'off' functionality from a 'swapon' invocation, so as to preclude the possibility of those kinds of programming errors.

Bill McGonigle <bill_mcgonigle>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by nihilus (Posted a comment)
  • -unavailable- added by bill_mcgonigle (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 28 Feb 2012 11:38:28 PM UTCnihilusStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
      Discussion LockUnlocked=>Locked

    Back to the top


    Powered by Savane 3.1-cleanup1