Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342849 - grep line in net-p2p/transmission init file doesn't work for all cases
Summary: grep line in net-p2p/transmission init file doesn't work for all cases
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 00:45 UTC by Sok Ann Yap
Modified: 2010-11-11 16:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A diff for the init file (transmission-init.diff,606 bytes, patch)
2010-10-27 00:47 UTC, Sok Ann Yap
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sok Ann Yap 2010-10-27 00:45:43 UTC
If TRANSMISSION_OPTIONS starts with --config-dir in /etc/conf.d/transmission-daemon, e.g.

TRANSMISSION_OPTIONS="--config-dir /data/transmission"

then the grep line in /etc/init.d/transmission-daemon doesn't work, because it tries to find a match with a leading space.

Reproducible: Always
Comment 1 Sok Ann Yap 2010-10-27 00:47:52 UTC
Created attachment 252127 [details, diff]
A diff for the init file

The grep line works for me after applying the diff
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-11-10 12:52:33 UTC
Thank you for report Sok. Fixed in 2.11-r2.
Comment 3 Sok Ann Yap 2010-11-11 10:55:26 UTC
The lowercase \b doesn't really work for me, can you check again? Thanks.
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2010-11-11 16:28:27 UTC
(In reply to comment #3)
> The lowercase \b doesn't really work for me, can you check again? Thanks.

Strange I'm not sure how it worked. Replaced \b with \B. Should work now. Thank you again.