Parsing of Runall Expire dates failes on specfic time formats

Bug #478207 reported by Joerg Delker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dirvish (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: dirvish

drivish-runall manpages states that "Runall" config directive is using Time::ParseDate formatted patterns.
This works with simple, non-spaced expressions but fails on anything that contains a space (like "Last Sun").

The following patch prevents this bug:

--- dirvish-runall.orig 2009-11-08 11:28:26.000000000 +0100
+++ dirvish-runall 2009-11-08 11:27:50.000000000 +0100
@@ -105,7 +105,7 @@

 for $sched (@{$$Config{Runall}})
 {
- ($vault, $itime) = split(/\s+/, $sched);
+ ($vault, $itime) = split(/\s+/, $sched,2);
  $cmd = "$$Config{Dirvish} --vault $vault";
  $itime and $cmd .= qq[ --image-time "$itime"];
  $$Options{quiet}

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: fcpci
Package: dirvish 1.2.1-1.1 [modified: usr/sbin/dirvish-runall]
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/usr/bin/tcsh
SourcePackage: dirvish
Uname: Linux 2.6.28-15-generic x86_64

Revision history for this message
Joerg Delker (ubuntu-delker) wrote :
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.