Bug 27982

Summary: dump(8) doesn't seem to correctly grok the -T option.
Product: Base System Reporter: sgreear <sgreear>
Component: binAssignee: dd <dd>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description sgreear 2001-06-09 03:20:01 UTC
Executing:
dump -f - -T "Sat Jun  9 18:05:38 2001" /archive/temp
Reports:
Must specify disk or filesystem

whereas Executing:
dump -f - -T "Sat Jun  9 18:05:38 2001" . /archive/temp
results in the desired activity.  Note the "." after the date string.
dump appears to do argc--; argv++; one too many times when
the -T option is specified.

Fix: 

case 'u':               /* update /etc/dumpdates */--B5yNSN6EbeYmMX1bAHCWIuSuxPeuZOyp77BZnCpLh54FH2RW
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- oldmain.c   Sat Jun  9 19:04:44 2001
+++ main.c      Sat Jun  9 19:04:58 2001
@@ -191,8 +191,6 @@
                        }
                        Tflag = 1;
                        lastlevel = '?';
-                       argc--;
-                       argv++;
                        break;
Comment 1 dd freebsd_committer freebsd_triage 2001-06-09 05:32:52 UTC
State Changed
From-To: open->analyzed

Committed, thanks! 


Comment 2 dd freebsd_committer freebsd_triage 2001-06-09 05:32:52 UTC
Responsible Changed
From-To: freebsd-bugs->dd

My MFC reminder.
Comment 3 dd freebsd_committer freebsd_triage 2001-06-21 03:18:53 UTC
State Changed
From-To: analyzed->closed

MFC'd