sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 6933] New: cleanse needs a little more intellegence when dealing with options . . .
- From: bugzilla-daemon AT metalab.unc.edu
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 6933] New: cleanse needs a little more intellegence when dealing with options . . .
- Date: Sun, 30 May 2004 14:17:46 -0400
http://bugs.sourcemage.org/show_bug.cgi?id=6933
Summary: cleanse needs a little more intellegence when dealing
with options . . .
Product: Sorcery
Version: 1.x Series
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Cleanse
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: jflatt AT sourcemage.org
Running 'cleanse --help' as a normal user gives the help text for su:
jason@jason:~$ cleanse --help
You must be root to run this command.
Switching to root user...
Usage: su [OPTION]... [-] [USER [ARG]...]
Change the effective user id and group id to that of USER.
-, -l, --login make the shell a login shell
-c, --commmand=COMMAND pass a single COMMAND to the shell with -c
-f, --fast pass -f to the shell (for csh or tcsh)
-m, --preserve-environment do not reset environment variables
-p same as -m
-s, --shell=SHELL run SHELL if /etc/shells allows it
--help display this help and exit
--version output version information and exit
A mere - implies -l. If USER not given, assume root.
Report bugs to <bug-coreutils AT gnu.org>.
jason@jason:~$
- - - - -
Also, running cleanse as a normal user with an invalid option gives an error
message for su:
jason@jason:~$ cleanse --sdlkfjldsfjl
You must be root to run this command.
Switching to root user...
su: unrecognized option `--sdlkfjldsfjl'
Try `su --help' for more information.
jason@jason:~$
- - - - -
Also, this may not be a bug, but it was a bit of a surprise when I was
testing
the options. Running 'cleanse --' as a normal user ends up running cleanse
as
if no options were specified (i.e.: exec $0 --packages --delint --prune
--sweep
--fix), once the password is given. When running the same command as root,
the
help/usage text is listed.
jason@jason:~$ cleanse --
You must be root to run this command.
Switching to root user...
Password:
Fixing packages...
Pass 1 (bad lines)
Pass 2 (non-existant spells)
Pass 3 (duplicate entries)
Done fixing packages.
Delinting...
Pass one (malformed lines)
Pass two (stale entries)
0 bad lines, 1586 good lines in your depends file.
Pass three (duplicate entries)
Delint done.
Pruning...
dispel
cast
For future reference, lines are stored in /tmp/prune.200405301085940865
Pruning done.
Generating list of files to keep...
etc.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
- [SM-Sorcery-Bugs] [Bug 6933] New: cleanse needs a little more intellegence when dealing with options . . ., bugzilla-daemon, 05/30/2004
Archive powered by MHonArc 2.6.24.