lastfmproxy command-line arguments not processed correctly

Bug #218886 reported by gerdemb
6
Affects Status Importance Assigned to Milestone
lastfmproxy (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: lastfmproxy

Argument passing to lastfmproxy is strange. Any argument with double dashes will be intercepted by the touch command in the /usr/sbin/lastfmproxy wrapper script. It's not clear to me what the wrapper script is supposed to be doing. In the end, it appears that lastfmproxy accepts only a single argument which is a directory name, but having touch intercept the (incorrect) argument first is confusing.

gerdemb-laptop:~> lastfmproxy --help
Usage: touch [OPTION]... FILE...
Update the access and modification times of each FILE to the current time.

Mandatory arguments to long options are mandatory for short options too.
  -a change only the access time
  -c, --no-create do not create any files
  -d, --date=STRING parse STRING and use it instead of current time
  -f (ignored)
  -m change only the modification time
  -r, --reference=FILE use this file's times instead of current time
  -t STAMP use [[CC]YY]MMDDhhmm[.ss] instead of current time
  --time=WORD change the specified time:
                           WORD is access, atime, or use: equivalent to -a
                           WORD is modify or mtime: equivalent to -m
      --help display this help and exit
      --version output version information and exit

Note that the -d and -t options accept different time-date formats.

If a FILE is -, touch standard output.

Report bugs to <email address hidden>.
/usr/sbin/lastfmproxy: 10: cannot create --help: Permission denied
gerdemb-laptop:~>

Revision history for this message
Daniel Hahler (blueyed) wrote :

According to the man page the syntax is:
  lastfmproxy [ /path/to/log/file ]

Daniel T Chen (crimsun)
Changed in lastfmproxy:
importance: Undecided → Low
Changed in lastfmproxy (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.